資源簡介
STM32F103ZET6_INA226電流采集芯片源碼,IIC通訊,可直接測量電流,電壓,用作電流計(jì),電流表很方便!

代碼片段和文件信息
/**************************************************************************//**
?*?@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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-04-29?17:44??.git\
?????文件??????????37??2020-04-29?17:44??.git\COMMIT_EDITMSG
?????文件?????????245??2020-04-29?17:41??.git\config
?????文件??????????73??2020-04-29?17:41??.git\desc
?????文件?????????102??2020-04-29?17:42??.git\FETCH_HEAD
?????文件??????????23??2020-04-29?17:41??.git\HEAD
?????目錄???????????0??2020-04-29?17:41??.git\hooks\
?????文件?????????478??2020-04-29?17:41??.git\hooks\applypatch-msg.sample
?????文件?????????896??2020-04-29?17:41??.git\hooks\commit-msg.sample
?????文件????????3327??2020-04-29?17:41??.git\hooks\fsmonitor-watchman.sample
?????文件?????????189??2020-04-29?17:41??.git\hooks\post-update.sample
?????文件?????????424??2020-04-29?17:41??.git\hooks\pre-applypatch.sample
?????文件????????1638??2020-04-29?17:41??.git\hooks\pre-commit.sample
?????文件????????1348??2020-04-29?17:41??.git\hooks\pre-push.sample
?????文件????????4898??2020-04-29?17:41??.git\hooks\pre-reba
?????文件?????????544??2020-04-29?17:41??.git\hooks\pre-receive.sample
?????文件????????1492??2020-04-29?17:41??.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2020-04-29?17:41??.git\hooks\update.sample
?????文件???????13482??2020-04-29?17:44??.git\index
?????目錄???????????0??2020-04-29?17:41??.git\info\
?????文件?????????240??2020-04-29?17:41??.git\info\exclude
?????目錄???????????0??2020-04-29?17:42??.git\logs\
?????文件?????????316??2020-04-29?17:44??.git\logs\HEAD
?????目錄???????????0??2020-04-29?17:42??.git\logs\refs\
?????目錄???????????0??2020-04-29?17:42??.git\logs\refs\heads\
?????文件?????????316??2020-04-29?17:44??.git\logs\refs\heads\master
?????目錄???????????0??2020-04-29?17:42??.git\logs\refs\remotes\
?????目錄???????????0??2020-04-29?17:42??.git\logs\refs\remotes\origin\
?????文件?????????306??2020-04-29?17:44??.git\logs\refs\remotes\origin\master
?????目錄???????????0??2020-04-29?17:44??.git\ob
?????目錄???????????0??2020-04-29?17:42??.git\ob
............此處省略451個(gè)文件信息
評論
共有 條評論