資源簡介
該代碼是磁力計stm32控制QMC5883L磁力計輸出角度與三個磁力分量,某寶一些標記有hmc5883L模塊實際是QMC5883L,輸出角度一直是45的可以試一下,你會感謝我的

代碼片段和文件信息
/**************************************************************************//**
?*?@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??2014-11-11?21:41??STM32F1_QMC5883L\CORE\core_cm3.c
?????文件??????85714??2014-11-11?21:41??STM32F1_QMC5883L\CORE\core_cm3.h
?????文件??????15766??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_cl.s
?????文件??????15503??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_hd.s
?????文件??????15692??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_hd_vl.s
?????文件??????12376??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_ld.s
?????文件??????13656??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_ld_vl.s
?????文件??????12765??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_md.s
?????文件??????14073??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_md_vl.s
?????文件??????15955??2014-11-11?21:41??STM32F1_QMC5883L\CORE\startup_stm32f10x_xl.s
?????文件???????1232??2018-04-06?15:56??STM32F1_QMC5883L\HMC5883L\HMC5883L.c
?????文件????????544??2018-04-06?14:58??STM32F1_QMC5883L\HMC5883L\HMC5883L.h
?????文件???????2528??2018-04-06?10:32??STM32F1_QMC5883L\I2C\I2C.c
?????文件????????411??2018-04-06?10:11??STM32F1_QMC5883L\I2C\I2C.h
?????文件????????569??2014-12-09?14:28??STM32F1_QMC5883L\LED\led.c
?????文件????????201??2014-12-09?14:23??STM32F1_QMC5883L\LED\led.h
?????文件???????3942??2019-04-25?11:30??STM32F1_QMC5883L\OBJ\core_cm3.crf
?????文件????????104??2019-04-25?11:30??STM32F1_QMC5883L\OBJ\core_cm3.d
?????文件??????11256??2019-04-25?11:30??STM32F1_QMC5883L\OBJ\core_cm3.o
?????文件?????247361??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\delay.crf
?????文件????????579??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\delay.d
?????文件?????265740??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\delay.o
?????文件?????????19??2015-02-20?15:53??STM32F1_QMC5883L\OBJ\ExtDll.iex
?????文件?????248239??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\hmc5883l.crf
?????文件????????693??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\hmc5883l.d
?????文件?????268016??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\hmc5883l.o
?????文件?????249299??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\i2c.crf
?????文件????????570??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\i2c.d
?????文件?????268380??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\i2c.o
?????文件?????247005??2019-04-25?11:31??STM32F1_QMC5883L\OBJ\led.crf
............此處省略296個文件信息
評論
共有 條評論