-
大小: 256KB文件類型: .7z金幣: 1下載: 0 次發布日期: 2021-06-13
- 語言: 其他
- 標簽: HAL??FreeModbus??STM32??
資源簡介
STM32使用HAL庫移植freemodbus-v1.6,已在正點原子MiniSTM32-V2開發板上測試通過,博客地址:https://blog.csdn.net/qq153471503/article/details/104840279
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????stm32f1xx_hal.c
??*?@author??MCD?Application?Team
??*?@brief???HAL?module?driver.
??*??????????This?is?the?common?part?of?the?HAL?initialization
??*
??@verbatim
??==============================================================================
?????????????????????#####?How?to?use?this?driver?#####
??==============================================================================
????[..]
????The?common?HAL?driver?contains?a?set?of?generic?and?common?APIs?that?can?be
????used?by?the?PPP?peripheral?drivers?and?the?user?to?start?using?the?HAL.
????[..]
????The?HAL?contains?two?APIs‘?categories:
?????????(+)?Common?HAL?APIs
?????????(+)?Services?HAL?APIs
??@endverbatim
??******************************************************************************
??*?@attention
??*
??*?©?Copyright?(c)?2016?STMicroelectronics.
??*?All?rights?reserved.
??*
??*?This?software?component?is?licensed?by?ST?under?BSD?3-Clause?license
??*?the?“License“;?You?may?not?use?this?file?except?in?compliance?with?the
??*?License.?You?may?obtain?a?copy?of?the?License?at:
??*????????????????????????opensource.org/licenses/BSD-3-Clause
??*
??******************************************************************************
??*/
/*?Includes?------------------------------------------------------------------*/
#include?“stm32f1xx_hal.h“
/**?@addtogroup?STM32F1xx_HAL_Driver
??*?@{
??*/
/**?@defgroup?HAL?HAL
??*?@brief?HAL?module?driver.
??*?@{
??*/
#ifdef?HAL_MODULE_ENABLED
/*?Private?typedef?-----------------------------------------------------------*/
/*?Private?define?------------------------------------------------------------*/
/**?@defgroup?HAL_Private_Constants?HAL?Private?Constants
??*?@{
??*/
/**
?*?@brief?STM32F1xx?HAL?Driver?version?number?V1.1.4
???*/
#define?__STM32F1xx_HAL_VERSION_MAIN???(0x01U)?/*![31:24]?main?version?*/
#define?__STM32F1xx_HAL_VERSION_SUB1???(0x01U)?/*![23:16]?sub1?version?*/
#define?__STM32F1xx_HAL_VERSION_SUB2???(0x04U)?/*![15:8]??sub2?version?*/
#define?__STM32F1xx_HAL_VERSION_RC?????(0x00U)?/*![7:0]??release?candidate?*/
#define?__STM32F1xx_HAL_VERSION?????????((__STM32F1xx_HAL_VERSION_MAIN?<24)\
????????????????????????????????????????|(__STM32F1xx_HAL_VERSION_SUB1?<16)\
????????????????????????????????????????|(__STM32F1xx_HAL_VERSION_SUB2?<8?)\
????????????????????????????????????????|(__STM32F1xx_HAL_VERSION_RC))
#define?IDCODE_DEVID_MASK????0x00000FFFU
/**
??*?@}
??*/
/*?Private?macro?-------------------------------------------------------------*/
/*?Private?variables?---------------------------------------------------------*/
/**?@defgroup?HAL_Private_Variables?HAL?Private?Variables
??*?@{
??*/
__IO?uint32_t?uwTick;
uint32_t?uwTickPrio???=?(1UL?<HAL_TickFreqTypeDef?uwTickFreq?=?HAL_TI
- 上一篇:微信小程序DEMO 源碼程序
- 下一篇:微信引導用戶右上角打開瀏覽器,訪問APP鏈接
評論
共有 條評論