From f16856e34c0c507cbfd42b9548668ada15bdcad5 Mon Sep 17 00:00:00 2001 From: armink Date: Sat, 3 Aug 2013 11:39:51 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91F?= =?UTF-8?q?reeModbus=E4=BB=8E=E6=9C=BA=EF=BC=8C=E4=BF=9D=E6=8C=81=E5=AF=84?= =?UTF-8?q?=E5=AD=98=E5=99=A8=E6=B5=8B=E8=AF=95=E6=B2=A1=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E5=85=B6=E4=BD=99=E5=8A=9F=E8=83=BD=E6=9C=89=E5=BE=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E3=80=823=E4=B8=AAIDE=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=90=8E=EF=BC=8C=E8=8E=B7=E5=8F=96=E7=9A=84?= =?UTF-8?q?CPU=E5=88=A9=E7=94=A8=E7=8E=87=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E6=9C=89=E5=BE=85=E8=BF=9B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E8=A7=A3=E5=86=B3=202=E3=80=81=E3=80=90=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=91IAR=E3=80=81Keil=E5=B7=A5=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=96=87=E4=BB=B6=EF=BC=8C=E5=8F=8A=E9=83=A8?= =?UTF-8?q?=E5=88=86CM3=E7=9B=B8=E5=85=B3=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E4=B9=8B=E5=89=8D=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=81=97=E7=95=99=E4=B8=8B=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=203=E3=80=81=E3=80=90=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E3=80=91RTT=E7=9A=84CPU=E5=88=A9=E7=94=A8=E7=8E=87=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=87=B3Modbus=E4=BF=9D=E6=8C=81=E5=AF=84=E5=AD=98?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- .cproject | 21 +- .settings/org.eclipse.cdt.core.prefs | 162 ++ .settings/org.eclipse.cdt.ui.prefs | 3 + APP/inc/UserModbusSlaver.h | 34 + APP/inc/app_task.h | 6 +- APP/inc/delay_conf.h | 1 + APP/inc/stm32f10x_it.h | 2 - APP/src/UserModbusSlaver.c | 192 +++ APP/src/app_task.c | 276 ++-- APP/src/stm32f10x_it.c | 21 - BSP/src/bsp.c | 601 ++++--- EWARM/FreeModbus_Slaver&Master+RTT+STM32.dep | 1435 ++++++++++++----- EWARM/FreeModbus_Slaver&Master+RTT+STM32.ewp | 63 + .../FreeModbus_Slaver&Master+RTT+STM32.dbgdt | 12 +- .../FreeModbus_Slaver&Master+RTT+STM32.dni | 2 +- .../FreeModbus_Slaver&Master+RTT+STM32.wsdt | 12 +- FreeModbus/modbus/ascii/mbascii.c | 485 ++++++ FreeModbus/modbus/ascii/mbascii.h | 56 + FreeModbus/modbus/functions/mbfunccoils.c | 270 ++++ FreeModbus/modbus/functions/mbfuncdiag.c | 29 + FreeModbus/modbus/functions/mbfuncdisc.c | 125 ++ FreeModbus/modbus/functions/mbfuncholding.c | 308 ++++ FreeModbus/modbus/functions/mbfuncinput.c | 122 ++ FreeModbus/modbus/functions/mbfuncother.c | 88 + FreeModbus/modbus/functions/mbutils.c | 141 ++ FreeModbus/modbus/include/mb.h | 417 +++++ FreeModbus/modbus/include/mbconfig.h | 103 ++ FreeModbus/modbus/include/mbframe.h | 87 + FreeModbus/modbus/include/mbfunc.h | 80 + FreeModbus/modbus/include/mbport.h | 127 ++ FreeModbus/modbus/include/mbproto.h | 83 + FreeModbus/modbus/include/mbutils.h | 108 ++ FreeModbus/modbus/mb.c | 408 +++++ FreeModbus/modbus/rtu/mbcrc.c | 98 ++ FreeModbus/modbus/rtu/mbcrc.h | 36 + FreeModbus/modbus/rtu/mbrtu.c | 355 ++++ FreeModbus/modbus/rtu/mbrtu.h | 51 + FreeModbus/modbus/tcp/mbtcp.c | 158 ++ FreeModbus/modbus/tcp/mbtcp.h | 53 + FreeModbus/port/port.c | 39 + FreeModbus/port/port.h | 71 + FreeModbus/port/portevent.c | 58 + FreeModbus/port/portserial.c | 190 +++ FreeModbus/port/porttimer.c | 104 ++ .../FreeModbus_Slaver&Master+RTT+STM32.uvopt | 830 ++++++---- .../FreeModbus_Slaver&Master+RTT+STM32.uvproj | 170 +- ...r&Master+RTT+STM32_STM32F103CBT6_FLASH.dep | 1137 +++++++++++++ RVMDK/JLinkLog.txt | 1091 +++++++------ 48 files changed, 8670 insertions(+), 1651 deletions(-) create mode 100644 .settings/org.eclipse.cdt.core.prefs create mode 100644 .settings/org.eclipse.cdt.ui.prefs create mode 100644 APP/inc/UserModbusSlaver.h create mode 100644 APP/src/UserModbusSlaver.c create mode 100644 FreeModbus/modbus/ascii/mbascii.c create mode 100644 FreeModbus/modbus/ascii/mbascii.h create mode 100644 FreeModbus/modbus/functions/mbfunccoils.c create mode 100644 FreeModbus/modbus/functions/mbfuncdiag.c create mode 100644 FreeModbus/modbus/functions/mbfuncdisc.c create mode 100644 FreeModbus/modbus/functions/mbfuncholding.c create mode 100644 FreeModbus/modbus/functions/mbfuncinput.c create mode 100644 FreeModbus/modbus/functions/mbfuncother.c create mode 100644 FreeModbus/modbus/functions/mbutils.c create mode 100644 FreeModbus/modbus/include/mb.h create mode 100644 FreeModbus/modbus/include/mbconfig.h create mode 100644 FreeModbus/modbus/include/mbframe.h create mode 100644 FreeModbus/modbus/include/mbfunc.h create mode 100644 FreeModbus/modbus/include/mbport.h create mode 100644 FreeModbus/modbus/include/mbproto.h create mode 100644 FreeModbus/modbus/include/mbutils.h create mode 100644 FreeModbus/modbus/mb.c create mode 100644 FreeModbus/modbus/rtu/mbcrc.c create mode 100644 FreeModbus/modbus/rtu/mbcrc.h create mode 100644 FreeModbus/modbus/rtu/mbrtu.c create mode 100644 FreeModbus/modbus/rtu/mbrtu.h create mode 100644 FreeModbus/modbus/tcp/mbtcp.c create mode 100644 FreeModbus/modbus/tcp/mbtcp.h create mode 100644 FreeModbus/port/port.c create mode 100644 FreeModbus/port/port.h create mode 100644 FreeModbus/port/portevent.c create mode 100644 FreeModbus/port/portserial.c create mode 100644 FreeModbus/port/porttimer.c create mode 100644 RVMDK/FreeModbus_Slaver&Master+RTT+STM32_STM32F103CBT6_FLASH.dep diff --git a/.cproject b/.cproject index 6cae23d..7687970 100644 --- a/.cproject +++ b/.cproject @@ -54,6 +54,9 @@ + + +