mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2024-09-01 08:09:25 +08:00
e8c502eca6
2、【更新】Modbus主机模式下相关回调函数; 3、【更新】《FreeModbus 主机分析图》; 4、【增加】主机模式下支持的从机最大数宏定义,默认16; Signed-off-by: armink <armink.ztl@gmail.com>
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/*********************************************************************************************************
|
|
// NCLUDE FILES
|
|
*********************************************************************************************************/
|
|
#ifndef APP_TASK_H
|
|
#define APP_TASK_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <rthw.h>
|
|
#include <rtthread.h>
|
|
#include <stm32f10x_conf.h>
|
|
#include "bsp.h"
|
|
#include "delay_conf.h"
|
|
#include "cpuusage.h"
|
|
#include "user_mb_app.h"
|
|
|
|
/*******************************************************************************************************/
|
|
// DEFINES
|
|
/*******************************************************************************************************/
|
|
|
|
|
|
#define success 0
|
|
#define fail 1
|
|
|
|
#define false 0
|
|
#define true 1
|
|
|
|
|
|
extern uint16_t ucSDiscInBuf[] ;
|
|
extern uint16_t ucSCoilBuf[] ;
|
|
extern uint16_t usSRegInBuf[] ;
|
|
extern uint16_t usSRegHoldBuf[] ;
|
|
|
|
|
|
|
|
|
|
extern void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor);
|
|
extern void cpu_usage_init(void);
|
|
|
|
|
|
|
|
void rtthread_startup(void);
|
|
|
|
|
|
#endif
|