資源簡介
本代碼可適配市面上帶有SBUS協(xié)議的所有車模、航模及工控遙控器,將S.BUS信號進(jìn)行解析后,轉(zhuǎn)發(fā)到CAN總線上。本壓縮包為完整的project,基于Keil mdk v5,0 Error編譯。主控采用STM32F103ZET6,已在實(shí)際應(yīng)用中穩(wěn)定使用。

代碼片段和文件信息
/**************************************************************************//**
?*?@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-08-07?09:19??SbusDecode2CAN\
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\CORE\
?????文件???????17273??2010-06-07?10:25??SbusDecode2CAN\CORE\core_cm3.c
?????文件???????85714??2011-02-09?14:59??SbusDecode2CAN\CORE\core_cm3.h
?????文件???????15503??2011-03-10?10:52??SbusDecode2CAN\CORE\startup_stm32f10x_hd.s
?????文件???????12765??2011-03-10?10:52??SbusDecode2CAN\CORE\startup_stm32f10x_md.s
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\CAN\
?????文件????????5649??2018-07-01?18:32??SbusDecode2CAN\HARDWARE\CAN\can.c
?????文件?????????360??2018-07-01?10:30??SbusDecode2CAN\HARDWARE\CAN\can.h
?????文件?????????399??2011-04-23?10:24??SbusDecode2CAN\HARDWARE\CAN\keilkilll.bat
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\KEY\
?????文件????????1089??2017-04-25?19:41??SbusDecode2CAN\HARDWARE\KEY\key.c
?????文件?????????289??2017-04-25?19:41??SbusDecode2CAN\HARDWARE\KEY\key.h
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\LED\
?????文件?????????546??2017-04-25?19:33??SbusDecode2CAN\HARDWARE\LED\led.c
?????文件?????????174??2017-04-25?19:33??SbusDecode2CAN\HARDWARE\LED\led.h
?????文件????????3291??2018-06-10?14:50??SbusDecode2CAN\HARDWARE\SBUS.C
?????文件?????????591??2018-05-18?13:53??SbusDecode2CAN\HARDWARE\SBUS.h
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\TIMER\
?????文件????????9939??2018-07-01?10:03??SbusDecode2CAN\HARDWARE\TIMER\timer.c
?????文件?????????301??2018-07-01?10:03??SbusDecode2CAN\HARDWARE\TIMER\timer.h
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\HARDWARE\adc\
?????文件????????5259??2018-07-03?15:08??SbusDecode2CAN\HARDWARE\adc\adc.c
?????文件?????????381??2018-07-01?13:07??SbusDecode2CAN\HARDWARE\adc\adc.h
?????目錄???????????0??2018-08-07?09:33??SbusDecode2CAN\OBJ\
?????文件???????43767??2018-08-07?09:31??SbusDecode2CAN\OBJ\SbusDecode2CAN.hex
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\STM32F10x_FWLib\
?????目錄???????????0??2018-08-07?09:19??SbusDecode2CAN\STM32F10x_FWLib\inc\
?????文件????????8982??2011-03-10?10:47??SbusDecode2CAN\STM32F10x_FWLib\inc\misc.h
?????文件???????21690??2011-03-10?10:47??SbusDecode2CAN\STM32F10x_FWLib\inc\stm32f10x_adc.h
............此處省略73個文件信息
- 上一篇:直插鋁電解電容PCB封裝帶3D模型
- 下一篇:云計(jì)算報告
評論
共有 條評論