mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2025-01-27 00:47:11 +08:00
f16856e34c
2、【修改】IAR、Keil工程中启动文件,及部分CM3相关的文件,解决之前工程配置遗留下来的问题 3、【增加】RTT的CPU利用率更新至Modbus保持寄存器的功能 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 "UserModbusSlaver.h"
|
|
|
|
/*******************************************************************************************************/
|
|
// DEFINES
|
|
/*******************************************************************************************************/
|
|
|
|
|
|
#define success 0
|
|
#define fail 1
|
|
|
|
#define false 0
|
|
#define true 1
|
|
|
|
|
|
extern uint16_t usDiscreteInputBuf[] ;
|
|
extern uint16_t usCoilBuf[] ;
|
|
extern uint16_t usRegInputBuf[] ;
|
|
extern uint16_t usRegHoldingBuf[] ;
|
|
|
|
|
|
|
|
|
|
extern void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor);
|
|
extern void cpu_usage_init(void);
|
|
|
|
|
|
|
|
void rtthread_startup(void);
|
|
|
|
|
|
#endif
|