資源簡介
該風扇我設置了兩個模式,一個是溫控模式,一個是按鍵模式,并使用SPI的OLED顯示溫度和風扇檔數,風扇電機的驅動模塊我使用的是L298N ,溫度傳感器為DS18B20

代碼片段和文件信息
/**************************************************************************//**
?*?@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??SuperFanV3【終極版】V2\SuperFanV3【終極版】\CORE\core_cm3.c
?????文件??????85714??2011-02-09?14:59??SuperFanV3【終極版】V2\SuperFanV3【終極版】\CORE\core_cm3.h
?????文件??????12765??2011-03-10?10:52??SuperFanV3【終極版】V2\SuperFanV3【終極版】\CORE\startup_stm32f10x_md.s
?????文件???????4687??2018-08-13?21:00??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\DS18B20\ds18b20.c
?????文件????????669??2018-08-13?21:00??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\DS18B20\ds18b20.h
?????文件???????4073??2018-08-11?17:14??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\EXTI\exti.c
?????文件????????124??2018-08-10?15:50??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\EXTI\exti.h
?????文件???????1301??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\KEY\key.c
?????文件????????577??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\KEY\key.h
?????文件????????697??2018-08-13?20:47??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\L298N\l298n.c
?????文件????????249??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\L298N\l298n.h
?????文件???????1177??2018-08-11?22:15??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\MODE\mode.c
?????文件?????????95??2018-08-10?22:03??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\MODE\mode.h
?????文件???????5634??2018-08-11?20:24??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\OLED\oled.c
?????文件????????957??2016-03-11?09:03??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\OLED\oled.h
?????文件??????16174??2013-09-13?11:45??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\OLED\oledfont.h
?????文件???????4864??2018-08-13?21:40??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\TIMER\timer.c
?????文件????????142??2018-08-13?21:25??SuperFanV3【終極版】V2\SuperFanV3【終極版】\HARDWARE\TIMER\timer.h
?????文件???????3939??2018-08-13?20:41??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\core_cm3.crf
?????文件????????101??2018-08-13?20:41??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\core_cm3.d
?????文件??????11340??2018-08-13?20:41??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\core_cm3.o
?????文件?????369374??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\delay.crf
?????文件???????2098??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\delay.d
?????文件?????398020??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\delay.o
?????文件?????370944??2018-08-13?21:00??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\ds18b20.crf
?????文件???????2192??2018-08-13?21:00??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\ds18b20.d
?????文件?????407112??2018-08-13?21:00??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\ds18b20.o
?????文件?????369518??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\key.crf
?????文件???????2012??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\key.d
?????文件?????396792??2018-08-13?20:49??SuperFanV3【終極版】V2\SuperFanV3【終極版】\OBJ\key.o
............此處省略319個文件信息
- 上一篇:[周克敏]魯棒與最優控制中文版
- 下一篇:嵌入式系統設計與實踐 white
評論
共有 條評論
- 頂一次
- 踩一次 1400 次