資源簡介
STM32+W25Q**模擬SPI代碼,親自測試有效,分享給大家。
代碼片段和文件信息
/**************************************************************************//**
?*?@file?????core_cm3.c
?*?@brief????CMSIS?Cortex-M3?Core?Peripheral?Access?layer?Source?File
?*?@version??V1.30
?*?@date?????30.?October?2009
?*
?*?@note
?*?Copyright?(C)?2009?ARM?Limited.?All?rights?reserved.
?*
?*?@par
?*?ARM?Limited?(ARM)?is?supplying?this?software?for?use?with?Cortex-M?
?*?processor?based?microcontrollers.??This?file?can?be?freely?distributed?
?*?within?development?tools?that?are?supporting?such?ARM?based?processors.?
?*
?*?@par
?*?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
/*?###################??Compiler?specific?Intrinsics??###########################?*/
#if?defined?(?__CC_ARM???)?/*------------------RealView?Compiler?-----------------*/
/*?ARM?armcc?specific?functions?*/
/**
?*?@brief??Return?the?Process?Stack?Pointer
?*
?*?@return?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??topOfProcStack??Process?Stack?Pointer
?*
?*?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
?*
?*?@return?Main?Stack?Pointer
?*
?*?Return?the?curren
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????????3??2017-08-04?17:12??STM32+SPIFLASH\.git\COMMIT_EDITMSG
?????文件????????331??2017-07-27?17:49??STM32+SPIFLASH\.git\config
?????文件?????????73??2017-07-27?17:44??STM32+SPIFLASH\.git\desc
?????文件?????????99??2017-07-28?10:07??STM32+SPIFLASH\.git\FETCH_HEAD
?????文件?????????23??2017-07-27?17:44??STM32+SPIFLASH\.git\HEAD
?????文件????????452??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\applypatch-msg.sample
?????文件????????896??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\commit-msg.sample
?????文件????????160??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\post-commit.sample
?????文件????????552??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\post-receive.sample
?????文件????????189??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\post-update.sample
?????文件????????398??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\pre-applypatch.sample
?????文件???????1704??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\pre-commit.sample
?????文件???????1348??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\pre-push.sample
?????文件???????4951??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\pre-reba
?????文件???????1239??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\prepare-commit-msg.sample
?????文件???????3611??2017-07-27?17:44??STM32+SPIFLASH\.git\hooks\update.sample
?????文件??????11501??2017-08-04?17:12??STM32+SPIFLASH\.git\index
?????文件????????240??2017-07-27?17:44??STM32+SPIFLASH\.git\info\exclude
?????文件????????901??2017-08-04?17:12??STM32+SPIFLASH\.git\logs\HEAD
?????文件????????901??2017-08-04?17:12??STM32+SPIFLASH\.git\logs\refs\heads\master
?????文件????????729??2017-08-04?17:12??STM32+SPIFLASH\.git\logs\refs\remotes\origin\master
?????文件?????????75??2017-07-27?17:51??STM32+SPIFLASH\.git\ob
?????文件????????263??2017-07-27?17:50??STM32+SPIFLASH\.git\ob
?????文件????????131??2017-08-04?08:49??STM32+SPIFLASH\.git\ob
?????文件????????553??2017-08-04?17:12??STM32+SPIFLASH\.git\ob
?????文件?????????77??2017-07-27?17:51??STM32+SPIFLASH\.git\ob
?????文件????????103??2017-07-27?17:50??STM32+SPIFLASH\.git\ob
?????文件??????15849??2017-08-04?17:12??STM32+SPIFLASH\.git\ob
?????文件???????2841??2017-07-27?17:50??STM32+SPIFLASH\.git\ob
?????文件????????161??2017-07-27?17:51??STM32+SPIFLASH\.git\ob
............此處省略608個(gè)文件信息
評(píng)論
共有 條評(píng)論