mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2025-02-15 20:29:01 +08:00
2、【创建】Eclipse工程,并支持IAR插件调试 3、【创建】Keil工程,位于/RVMDK目录下 4、【创建】IAR工程,位于/EWARM目录下 5、【添加】RT-Thread1.1.1操作系统支持 6、【添加】LED1、LED2系统运行指示灯 7、【修改】Readdme.md文件 Signed-off-by: armink <armink.ztl@gmail.com>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* File : finsh_var.h
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2010-03-22 Bernard first version
|
|
*/
|
|
#ifndef __FINSH_VAR_H__
|
|
#define __FINSH_VAR_H__
|
|
|
|
#include <finsh.h>
|
|
|
|
/*
|
|
* The variable in finsh is put in data segment as a global variable.
|
|
* The 'finsh_var' structure presents the structure of variable in data segment.
|
|
*/
|
|
struct finsh_var
|
|
{
|
|
char name[FINSH_NAME_MAX + 1]; /* the name of variable */
|
|
|
|
u_char type; /* the type of variable */
|
|
|
|
/* variable value */
|
|
union {
|
|
char char_value;
|
|
short short_value;
|
|
int int_value;
|
|
long long_value;
|
|
void* ptr;
|
|
}value;
|
|
};
|
|
extern struct finsh_var global_variable[];
|
|
|
|
int finsh_var_init(void);
|
|
int finsh_var_insert(const char* name, int type);
|
|
int finsh_var_delete(const char* name);
|
|
struct finsh_var* finsh_var_lookup(const char* name);
|
|
|
|
#endif
|