資源簡介
這個代碼的系統性非常強,在看這個代碼的過程中有不一樣的感悟。適合大家學習,同時還有許多的注釋,適合學習。

代碼片段和文件信息
/******************************************************************************
?*?@file:????core_cm3.c
?*?@purpose:?CMSIS?Cortex-M3?Core?Peripheral?Access?layer?Source?File
?*?@version:?V1.10
?*?@date:????24.?Feb.?2009
?*----------------------------------------------------------------------------
?*
?*?Copyright?(C)?2009?ARM?Limited.?All?rights?reserved.
?*
?*?ARM?Limited?(ARM)?is?supplying?this?software?for?use?with?Cortex-Mx?
?*?processor?based?microcontrollers.??This?file?can?be?freely?distributed?
?*?within?development?tools?that?are?supporting?such?ARM?based?processors.?
?*
?*?THIS?SOFTWARE?IS?PROVIDED?“AS?IS“.??NO?WARRANTIES?WHETHER?EXPRESS?IMPLIED
?*?OR?STATUTORY?INCLUDING?BUT?NOT?LIMITED?TO?IMPLIED?WARRANTIES?OF
?*?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?APPLY?TO?THIS?SOFTWARE.
?*?ARM?SHALL?NOT?IN?ANY?CIRCUMSTANCES?BE?LIABLE?FOR?SPECIAL?INCIDENTAL?OR
?*?CONSEQUENTIAL?DAMAGES?FOR?ANY?REASON?WHATSOEVER.
?*
?******************************************************************************/
#include?
/*?define?compiler?specific?symbols?*/
#if?defined???(?__CC_ARM???)
??#define?__ASM????????????__asm???????????/*!??#define?__INLINE?????????__inline????????/*!
#elif?defined?(?__ICCARM__?)
??#define?__ASM???????????__asm????????????/*!??#define?__INLINE????????inline???????????/*!??#define?__nop???????????__no_operation???/*!
#elif?defined?(??__GNUC__??)
??#define?__ASM?????????????asm????????????/*!??#define?__INLINE??????????inline?????????/*!#endif
#if?defined?(?__CC_ARM???)?/*------------------RealView?Compiler?-----------------*/
/**
?*?@brief??Return?the?Process?Stack?Pointer
?*
?*?@param??none
?*?@return?uint32_t?ProcessStackPointer
?*
?*?Return?the?actual?process?stack?pointer
?*/
__ASM?uint32_t?__get_PSP(void)
{
??mrs?r0?psp
??bx?lr
}
/**
?*?@brief??Set?the?Process?Stack?Pointer
?*
?*?@param??uint32_t?Process?Stack?Pointer
?*?@return?none
?*
?*?Assign?the?value?ProcessStackPointer?to?the?MSP?
?*?(process?stack?pointer)?Cortex?processor?register
?*/
__ASM?void?__set_PSP(uint32_t?topOfProcStack)
{
??msr?psp?r0
??bx?lr
}
/**
?*?@brief??Return?the?Main?Stack?Pointer
?*
?*?@param??none
?*?@return?uint32_t?Main?Stack?Pointer
?*
?*?Return?the?current?value?of?the?MSP?(main?stack?pointer)
?*?Cortex?processor?register
?*/
__ASM?uint32_t?__get_MSP(void)
{
??mrs?r0?msp
??bx?lr
}
/**
?*?@brief??Set?the?Main?Stack?Pointer
?*
?*?@param??uint32_t?Main?Stack?Pointer
?*?@return?none
?*
?*?Assign?the?value?mainStackPointer?to?the?MSP?
?*?(main?stack?pointer)?Cortex?processor?register
?*/
__ASM?void?__set_MSP(uint32_t?mainStackPointer)
{
??msr?msp?r0
??bx?lr
}
/**
?*?@brief??Reverse?byte?order?in?unsigned?short?value
?*
?*
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.......????????84??2015-12-16?20:38??STM32-GRBL-master\desktop.ini
????.......???????465??2015-12-16?20:38??STM32-GRBL-master\Jli
????.......???????268??2015-12-16?20:38??STM32-GRBL-master\Jli
????.......???????372??2015-12-16?20:38??STM32-GRBL-master\keilkilll.bat
????.......??????4785??2015-12-16?20:38??STM32-GRBL-master\lib\misc.h
????.......?????19079??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_adc.h
????.......??????7187??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_bkp.h
????.......?????13839??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_can.h
????.......??????1895??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_crc.h
????.......?????10010??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_dac.h
????.......??????2880??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_dbgmcu.h
????.......?????18366??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_dma.h
????.......??????5663??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_exti.h
????.......?????14141??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_flash.h
????.......?????26283??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_fsmc.h
????.......?????14727??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_gpio.h
????.......?????16470??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_i2c.h
????.......??????3610??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_iwdg.h
????.......??????4054??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_pwr.h
????.......?????15838??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_rcc.h
????.......??????3533??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_rtc.h
????.......?????18112??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_sdio.h
????.......?????14453??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_spi.h
????.......?????47728??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_tim.h
????.......?????14105??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_usart.h
????.......??????2679??2015-12-16?20:38??STM32-GRBL-master\lib\stm32f10x_wwdg.h
????.......???8281344??2015-12-16?20:38??STM32-GRBL-master\lib\STM32_lib_3.0.lib
????.......?????18047??2015-12-16?20:38??STM32-GRBL-master\LICENSE
????.......?????71725??2015-12-16?20:38??STM32-GRBL-master\main.uvgui.rhyme
????.......?????77565??2018-10-15?16:48??STM32-GRBL-master\main.uvguix.dell
............此處省略157個文件信息
- 上一篇:電力101/104規約模擬器
- 下一篇:基于stm32F103的兩輪自平衡小車
評論
共有 條評論