91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6.08MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-25
  • 語言: 其他
  • 標簽: Modbus??RTU協議??

資源簡介

STM32作從機實現簡單的Modbus RTU協議,完整的代碼,請下載附件,注意選擇上位機調試助手最好用modscan32,我的代碼也是在這個軟件做主設備,調試通過的。

資源截圖

代碼片段和文件信息

/**************************************************************************//**
?*?@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??2017-04-04?09:11??modbus實驗\
?????目錄???????????0??2017-04-04?09:10??modbus實驗\CORE\
?????文件???????17273??2010-06-07?10:25??modbus實驗\CORE\core_cm3.c
?????文件???????85714??2011-02-09?14:59??modbus實驗\CORE\core_cm3.h
?????文件???????15503??2011-03-10?10:52??modbus實驗\CORE\startup_stm32f10x_hd.s
?????目錄???????????0??2017-04-04?17:43??modbus實驗\FUNCTION\
?????文件????????1330??2017-04-04?09:43??modbus實驗\FUNCTION\crc.c
?????文件??????????83??2017-04-04?09:34??modbus實驗\FUNCTION\crc.h
?????文件????????2007??2017-04-04?17:43??modbus實驗\FUNCTION\timer.c
?????文件?????????568??2014-03-21?12:05??modbus實驗\FUNCTION\timer.h
?????目錄???????????0??2017-04-04?19:08??modbus實驗\OBJ\
?????文件??????360396??2017-04-04?19:08??modbus實驗\OBJ\Template.axf
?????文件????????1408??2017-04-04?19:08??modbus實驗\OBJ\Template.build_log.htm
?????文件???????27162??2017-04-04?19:08??modbus實驗\OBJ\Template.hex
?????文件???????74275??2017-04-04?19:08??modbus實驗\OBJ\Template.htm
?????文件????????1048??2017-04-04?19:08??modbus實驗\OBJ\Template.lnp
?????文件?????????479??2016-09-22?12:47??modbus實驗\OBJ\Template.sct
?????文件???????64331??2017-04-04?19:08??modbus實驗\OBJ\Template_Template.dep
?????文件????????3938??2017-04-04?15:08??modbus實驗\OBJ\core_cm3.crf
?????文件?????????100??2017-04-04?15:08??modbus實驗\OBJ\core_cm3.d
?????文件???????11140??2017-04-04?15:08??modbus實驗\OBJ\core_cm3.o
?????文件??????348234??2017-04-04?15:09??modbus實驗\OBJ\crc.crf
?????文件????????1554??2017-04-04?15:09??modbus實驗\OBJ\crc.d
?????文件??????379848??2017-04-04?15:09??modbus實驗\OBJ\crc.o
?????文件??????349951??2017-04-04?15:09??modbus實驗\OBJ\delay.crf
?????文件????????1665??2017-04-04?15:09??modbus實驗\OBJ\delay.d
?????文件??????383008??2017-04-04?15:09??modbus實驗\OBJ\delay.o
?????文件??????354237??2017-04-04?18:31??modbus實驗\OBJ\main.crf
?????文件????????1748??2017-04-04?18:31??modbus實驗\OBJ\main.d
?????文件??????386204??2017-04-04?18:31??modbus實驗\OBJ\main.o
?????文件??????348896??2017-04-04?15:08??modbus實驗\OBJ\misc.crf
............此處省略161個文件信息

評論

共有 條評論