31 lines
454 B
C
31 lines
454 B
C
#ifndef __CHRG_LCD_H__
|
|
#define __CHRG_LCD_H__
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include "chrg_tty.h"
|
|
|
|
#define THR_NAME_LCD "thr.lcd"
|
|
#define DEV_NAME_LCD "uart2"
|
|
|
|
struct chrg_lcd_t {
|
|
const char *name;
|
|
const char *devname;
|
|
struct rt_thread *tid;
|
|
struct rt_mutex lock;
|
|
|
|
struct chrg_tty_t *tty;
|
|
rt_uint8_t rx_buf[SIZE_BUF_TTY];
|
|
|
|
};
|
|
|
|
extern struct chrg_lcd_t chrglcd;
|
|
|
|
extern int chrg_lcd_send (char *cmd);
|
|
|
|
extern int chrg_lcd_init (void);
|
|
|
|
#endif
|
|
|
|
|