資源簡介
從項目中剝離,通信類接收數據時采用循環隊列的方式。此工程在STM32F103ZET6上運行。開發環境為Keil for ARM 5.10

代碼片段和文件信息
/******************************************************************************
?*?@file:????core_cm3.c
?*?@purpose:?CMSIS?Cortex-M3?Core?Peripheral?Access?layer?Source?File
?*?@version:?V1.20
?*?@date:????22.?May?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???????????/*!
#elif?defined?(??__GNUC__??)
??#define?__ASM?????????????__asm??????????/*!??#define?__INLINE??????????inline?????????/*!
#elif?defined???(??__TASKING__??)
??#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
?*
?*?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????216??2014-09-01?17:37??Queue\.git\config
?????文件?????????73??2014-08-25?12:23??Queue\.git\desc
?????文件?????????23??2014-08-25?12:23??Queue\.git\HEAD
?????文件????????452??2014-08-25?12:23??Queue\.git\hooks\applypatch-msg.sample
?????文件????????896??2014-08-25?12:23??Queue\.git\hooks\commit-msg.sample
?????文件????????189??2014-08-25?12:23??Queue\.git\hooks\post-update.sample
?????文件????????398??2014-08-25?12:23??Queue\.git\hooks\pre-applypatch.sample
?????文件???????1642??2014-08-25?12:23??Queue\.git\hooks\pre-commit.sample
?????文件???????1352??2014-08-25?12:23??Queue\.git\hooks\pre-push.sample
?????文件???????4951??2014-08-25?12:23??Queue\.git\hooks\pre-reba
?????文件???????1239??2014-08-25?12:23??Queue\.git\hooks\prepare-commit-msg.sample
?????文件???????3611??2014-08-25?12:23??Queue\.git\hooks\update.sample
?????文件??????24905??2014-09-01?17:37??Queue\.git\index
?????文件????????240??2014-08-25?12:23??Queue\.git\info\exclude
?????文件?????????59??2014-08-28?17:31??Queue\.git\info\refs
?????文件????????619??2014-09-01?17:37??Queue\.git\logs\HEAD
?????文件????????619??2014-09-01?17:37??Queue\.git\logs\refs\heads\master
?????文件????????129??2014-08-28?17:35??Queue\.git\ob
?????文件???????1010??2014-08-28?17:31??Queue\.git\ob
?????文件??????15162??2014-08-28?17:31??Queue\.git\ob
?????文件???????1618??2014-08-28?17:31??Queue\.git\ob
?????文件????????147??2014-08-28?17:35??Queue\.git\ob
?????文件????????850??2014-08-28?17:31??Queue\.git\ob
?????文件???????1037??2014-09-01?17:36??Queue\.git\ob
?????文件????????700??2014-08-28?17:31??Queue\.git\ob
?????文件???????3520??2014-08-28?17:31??Queue\.git\ob
?????文件???????1885??2014-08-28?17:35??Queue\.git\ob
?????文件???????3764??2014-08-28?17:31??Queue\.git\ob
?????文件???????3140??2014-08-28?17:31??Queue\.git\ob
?????文件???????2465??2014-09-01?17:36??Queue\.git\ob
............此處省略239個文件信息
評論
共有 條評論