-
大小: 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 << __NVIC_PRIO_BITS); /* Invalid PRIO */
HAL_TickFreqTypeDef uwTickFreq = HAL_TI
- 上一篇:微信小程序DEMO 源码程序
- 下一篇:微信引导用户右上角打开浏览器,访问APP链接
相关资源
- stm32 LabVIEW控制开发板LED灯显示
- STM32F103C8T6+1.44寸ST7735TFT LCD彩屏驱动程
-
Jli
nk unlock for F1,解锁F1系列的ARM芯 - f407_mpu6050.rar
- 基于STM32的AD9834驱动
- 基于STM32HAL库的AD9834驱动代码修正.z
- STM32Cube之ID加密
- JPEG解码,可以移植到STM32中
- stm32cubemx软件iic读取mpu6050dmp通过串口
- 基于STM32实现的简易电子琴
- 基于IAR的STM8L152的USART、ADC(双通道)
- STM32F207中文数据手册
- STM32F407W5500
- Flymcu(STM32)
- nRF24LE1与nRF24L01通讯程序
- stm32内部结构图
- STM32 多通道 不同频率 可变频 pwm输出
- STM32一步一步教你点亮流水灯
- STM32F103ZET6 AD10封装库
- STM32F10x标准固件函数库V3.6.1
- STM32F AT24c02软件驱动程序
- Proteus8.9 仿真STM32407ZGT6系列基础模板
- STM32通过GPRS(SIM7600CE模块)进行IAP远
- 遥控器S.BUS信号解析转发到CAN源码
- STM32 ADC采样和滤波
- stm32 isp工具支持rts,cts控制复位
- STM32F411RCT6最小系统原理图
- IAR下stm32程序
- stm32f103的AD7091驱动程序
- halcon选择特定区域 模板匹配
评论
共有 条评论