資源簡介
做了1年多的比賽,攢出來一套庫,然后總結說明了一下,里面是以正點原子庫為基礎,包含泰慶、優信、龍邱和一些從網上大神的程序里面借鑒,還是相對比較全的庫,適合入門級使用哈,精度中下等,需要高精度高要求需要自己更改。
代碼片段和文件信息
/**************************************************************************//**
?*?@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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-26?21:40??STM32_sumjess\
?????目錄???????????0??2018-09-26?21:09??STM32_sumjess\CORE\
?????文件???????17273??2010-06-07?10:25??STM32_sumjess\CORE\core_cm3.c
?????文件???????85714??2011-02-09?14:59??STM32_sumjess\CORE\core_cm3.h
?????文件???????85714??2011-02-09?14:59??STM32_sumjess\CORE\core_cm3.h~RF4c5eee1.TMP
?????文件???????15504??2017-08-03?11:46??STM32_sumjess\CORE\startup_stm32f10x_hd.s
?????文件???????12765??2011-03-10?10:52??STM32_sumjess\CORE\startup_stm32f10x_md.s
?????文件???????58368??2017-09-08?18:38??STM32_sumjess\C語言.doc
?????文件?????2652672??2014-09-02?12:39??STM32_sumjess\FlyMcu.exe
?????文件????????1355??2018-09-26?21:40??STM32_sumjess\FlyMcuConfig.ini
?????目錄???????????0??2018-09-26?21:09??STM32_sumjess\Food_robot\
?????目錄???????????0??2018-09-26?21:22??STM32_sumjess\Food_robot\MOTOR\
?????文件????????2724??2018-09-26?21:22??STM32_sumjess\Food_robot\MOTOR\sumjess_track_motor.c
?????文件????????1853??2018-09-26?21:22??STM32_sumjess\Food_robot\MOTOR\sumjess_track_motor.h
?????目錄???????????0??2018-09-26?21:09??STM32_sumjess\Food_robot\food_oled\
?????文件????????3248??2018-09-25?17:17??STM32_sumjess\Food_robot\food_oled\food_OLED.c
?????文件????????1184??2018-09-23?10:54??STM32_sumjess\Food_robot\food_oled\food_OLED.h
?????目錄???????????0??2018-09-26?21:09??STM32_sumjess\Food_robot\test\
?????文件????????3520??2018-09-22?07:09??STM32_sumjess\Food_robot\test\test.c
?????文件????????1520??2018-09-22?07:09??STM32_sumjess\Food_robot\test\test.h
?????目錄???????????0??2018-09-26?22:04??STM32_sumjess\Food_robot\track\
?????文件????????3700??2018-09-26?22:04??STM32_sumjess\Food_robot\track\sumjess_track.c
?????文件????????1645??2018-09-22?08:11??STM32_sumjess\Food_robot\track\sumjess_track.h
?????目錄???????????0??2018-09-26?21:23??STM32_sumjess\HAREWARE\
?????目錄???????????0??2018-09-26?21:09??STM32_sumjess\HAREWARE\24CXX\
?????文件????????3510??2012-07-19?23:42??STM32_sumjess\HAREWARE\24CXX\24cxx.c
?????文件????????1134??2011-09-27?13:05??STM32_sumjess\HAREWARE\24CXX\24cxx.h
?????目錄???????????0??2018-09-26?21:58??STM32_sumjess\HAREWARE\ADC\
?????文件????????6048??2018-09-26?21:15??STM32_sumjess\HAREWARE\ADC\adc.c
?????文件????????1656??2018-09-26?21:15??STM32_sumjess\HAREWARE\ADC\adc.h
?????文件??????795648??2017-08-24?17:55??STM32_sumjess\HAREWARE\ADC\解釋.doc
............此處省略644個文件信息
評論
共有 條評論