资源简介
【FreeRTOS和FreeMODBUS移植到STM32F407傻瓜教程(Keil5)源程序.zip】手把手教你一步步移植成功。先从大的方向讲解应该如何移植,要移植哪些,然后着重将移植过程中感到困惑的、容易忽略的地方进行了讲解,每一步关键点都有截屏。 【FreeRTOS和FreeMODBUS移植到STM32F407傻瓜教程(Keil5)源程序.zip】还有对应的PDF文档,请在CSDN搜索:【FreeRTOS和FreeMODBUS移植到STM32F407傻瓜教程(Keil5).PDF】 1、压缩包里有移植前的工程项目V5-GPIO实验_跑马灯.zip 2、压缩包里有FreeRTOSv10.2.1_191129.exe源码 3、压缩包里有freemodbus-v1.6.zip源码
代码片段和文件信息
/*
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006-2018 Christian Walter bedded-solutions.at>
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ‘‘AS IS‘‘ AND ANY EXPRESS OR
* IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT INDIRECT
* INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT
* NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
* DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
/* ----------------------- System includes ----------------------------------*/
#include “stdlib.h“
#include “string.h“
/* ----------------------- Platform includes --------------------------------*/
#include “port.h“
/* ----------------------- Modbus includes ----------------------------------*/
#include “mb.h“
#include “mbconfig.h“
#include “mbframe.h“
#include “mbproto.h“
#include “mbfunc.h“
#include “mbport.h“
#if MB_RTU_ENABLED == 1
#include “mbrtu.h“
#endif
#if MB_ASCII_ENABLED == 1
#include “mbascii.h“
#endif
#if MB_TCP_ENABLED == 1
#include “mbtcp.h“
#endif
#ifndef MB_PORT_HAS_CLOSE
#define MB_PORT_HAS_CLOSE 0
#endif
/* ----------------------- Static variables ---------------------------------*/
static UCHAR ucMBAddress;
static eMBMode eMBCurrentMode;
static enum
{
STATE_ENABLED
STATE_DISABLED
STATE_NOT_INITIALIZED
} eMBState = STATE_NOT_INITIALIZED;
/* Functions pointer which are initialized in eMBInit( ). Depending on the
* mode (RTU or ASCII) the are set to the correct implementations.
*/
static peMBframeSend peMBframeSendCur;
static pvMBframeStart pvMBframeStartCur;
static pvMBframeStop pvMBframeStopCur;
static peMBframeReceive peMBframeReceiveCur;
static pvMBframeClose pvMBframeCloseCur;
/* Callback functions required by the porting layer. They are called when
* an
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-12-26 14:17 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\
文件 447 2015-03-23 15:41 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\01.例程功能说明.txt
文件 601 2015-03-23 17:04 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\02.例程修改记录.txt
文件 7044 2013-06-20 09:34 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\03.开发环境说明.txt
文件 7564 2013-06-20 06:09 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\04.STM32F407IGT6引脚定义(原始定义).txt
文件 9924 2013-06-20 08:58 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\05.GPIO分配表(按GPIO次序排列).txt
文件 10725 2013-06-20 22:46 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\06.GPIO分配表(按功能排列).txt
文件 195963 2013-07-22 07:14 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\Doc\F4.jpg
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\
文件 4395983 2019-05-10 15:11 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\freemodbus-v1.6.zip
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\ascii\
文件 15673 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\ascii\mbascii.c
文件 2416 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\ascii\mbascii.h
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\
文件 9842 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfunccoils.c
文件 1618 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfuncdiag.c
文件 5320 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfuncdisc.c
文件 12153 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfuncholding.c
文件 4792 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfuncinput.c
文件 3489 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbfuncother.c
文件 5058 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\functions\mbutils.c
目录 0 2019-12-25 10:30 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\
文件 19677 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mb.h
文件 5635 2019-12-24 09:25 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbconfig.h
文件 3747 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbfr
文件 3074 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbfunc.h
文件 4901 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbport.h
文件 3635 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbproto.h
文件 4177 2018-09-14 04:03 V5-GPIO实验_跑马灯+FreeRTOS+FreeMODBUS\FreeModbus\modbus\include\mbutils.h
............此处省略15620个文件信息
相关资源
- S32K144使用printf格式化输出
- 嵌入式实时操作系统μC/OS-II在ARM上的
- Sun助英国Virgin公司完成数据移植
- Sun财务组织(SMF)帮助香港CLSA公司成
- 存储系统向Sun StorEdge高端系统的成功
- 基于stm32F103vct6的SD卡FATFS文件系统移植
- FreeModbus_Slave+STM32F407+USART2代码亲测可
- ET1100移植到LAN9252
- ESP32蓝牙架构官方
- Mini6410 Qt4和Qtopia编程开发指南
- HAL库下的OLED移植
- STM32F103移植FreeModbus实现modbus主机.zi
- Linux典藏大系之Linux系统移植第2版
- STM32L476 FreeRTOS系统移植项目
- RT1052野火基于 RT-Thread 移植的littlevg
- MQ-2烟雾传感器模块.zip
- ppp拨号移植笔记
- 1901-2100年黄历(execl版方便移植
- 可移植的snprintf,遵循C99标准-portabl
- Linux ntpclient代码
- HAL库的OLED 移植
- STM32F103移植rt-thread
- 复方浙贝颗粒联合阿霉素影响K562/A0
- 复方浙贝颗粒联合阿霉素影响AML-KG-
- 复方浙贝颗粒联合阿霉素影响K562/A0
- 复方浙贝颗粒联合阿霉素影响K562/A0
- 复方浙贝颗粒联合阿霉素影响K562/A0
- 复方浙贝颗粒联合阿霉素对AML-KG-1a移
- 复方浙贝颗粒联合阿霉素对K562/A02移植
- 复方浙贝颗粒联合阿霉素对P388移植瘤
评论
共有 条评论