資源簡介
1、適用于STM32RCT6最小系統(tǒng)板,SW-420常閉型震動傳感器模塊(工作電壓3.3--5V,驅(qū)動電流>15mA)
2、具有看門狗防死機(jī)功能
3、具有查詢或中斷兩種方式,使用查詢方式時按鍵的NVIC_Init函數(shù)需屏蔽(中斷方式效果更好)
4、通過滑動變阻器調(diào)節(jié)感應(yīng)靈敏度,金屬點一側(cè)為高靈敏度(分壓電阻小)

代碼片段和文件信息
/**************************************************************************//**
?*?@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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17273??2010-06-07?10:25??19、Vibration\CORE\core_cm3.c
?????文件??????85714??2011-02-09?14:59??19、Vibration\CORE\core_cm3.h
?????文件??????15503??2011-03-10?10:52??19、Vibration\CORE\startup_stm32f10x_hd.s
?????文件???????1599??2018-12-21?10:42??19、Vibration\HARDWARE\delay.c
?????文件????????175??2015-09-28?15:18??19、Vibration\HARDWARE\delay.h
?????文件???????1338??2018-11-23?11:17??19、Vibration\HARDWARE\led.c
?????文件????????609??2018-12-20?11:57??19、Vibration\HARDWARE\led.h
?????文件???????1415??2018-12-29?10:29??19、Vibration\HARDWARE\sw420.c
?????文件????????291??2018-12-26?13:27??19、Vibration\HARDWARE\sw420.h
?????文件???????1372??2018-12-26?11:02??19、Vibration\HARDWARE\timer3.c
?????文件????????317??2018-07-27?11:38??19、Vibration\HARDWARE\timer3.h
?????文件???????3730??2019-01-17?10:31??19、Vibration\HARDWARE\usart1.c
?????文件????????391??2019-01-17?10:31??19、Vibration\HARDWARE\usart1.h
?????文件???????1705??2017-09-26?14:33??19、Vibration\HARDWARE\watchdog.c
?????文件????????272??2016-09-02?15:11??19、Vibration\HARDWARE\watchdog.h
?????文件??????80027??2018-12-26?13:32??19、Vibration\Jli
?????文件????????573??2016-07-28?16:34??19、Vibration\Jli
?????文件?????348827??2018-03-21?14:22??19、Vibration\OBJ\adc1.crf
?????文件???????1571??2018-03-21?14:22??19、Vibration\OBJ\adc1.d
?????文件?????381548??2018-03-21?14:22??19、Vibration\OBJ\adc1.o
?????文件???????3662??2019-01-18?15:47??19、Vibration\OBJ\core_cm3.crf
?????文件????????112??2019-01-18?15:47??19、Vibration\OBJ\core_cm3.d
?????文件??????10784??2019-01-18?15:47??19、Vibration\OBJ\core_cm3.o
?????文件?????348481??2019-01-18?15:47??19、Vibration\OBJ\delay.crf
?????文件???????1572??2019-01-18?15:47??19、Vibration\OBJ\delay.d
?????文件?????380968??2019-01-18?15:47??19、Vibration\OBJ\delay.o
?????文件?????353728??2018-12-20?09:53??19、Vibration\OBJ\dht11.crf
?????文件???????1712??2018-12-20?09:53??19、Vibration\OBJ\dht11.d
?????文件?????386732??2018-12-20?09:53??19、Vibration\OBJ\dht11.o
?????文件?????348484??2018-08-01?10:17??19、Vibration\OBJ\dma.crf
............此處省略194個文件信息
- 上一篇:HC-SR04超聲波測距模塊STM32源碼
- 下一篇:船舶阻力和螺旋槳計算
評論
共有 條評論