2013-08-02 14:00:55 +08:00
|
|
|
/*********************************************************************************************************
|
|
|
|
// 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"
|
2013-08-03 11:39:51 +08:00
|
|
|
#include "UserModbusSlaver.h"
|
2013-08-02 14:00:55 +08:00
|
|
|
|
|
|
|
/*******************************************************************************************************/
|
|
|
|
// DEFINES
|
|
|
|
/*******************************************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#define success 0
|
|
|
|
#define fail 1
|
|
|
|
|
|
|
|
#define false 0
|
|
|
|
#define true 1
|
|
|
|
|
|
|
|
|
2013-08-03 11:39:51 +08:00
|
|
|
extern uint16_t usDiscreteInputBuf[] ;
|
|
|
|
extern uint16_t usCoilBuf[] ;
|
|
|
|
extern uint16_t usRegInputBuf[] ;
|
|
|
|
extern uint16_t usRegHoldingBuf[] ;
|
2013-08-02 14:00:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor);
|
|
|
|
extern void cpu_usage_init(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void rtthread_startup(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|