30 lines
497 B
C
30 lines
497 B
C
#ifndef __CHRG_SOUTH_H__
|
|
#define __CHRG_SOUTH_H__
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include "chrg_tty.h"
|
|
#include "chrg_switch.h"
|
|
|
|
#define THR_NAME_SOUTH "thr.sou"
|
|
|
|
struct chrg_south_t {
|
|
const char *name;
|
|
struct rt_thread *tid;
|
|
struct rt_mutex lock;
|
|
|
|
struct chrg_tty_t *tty;
|
|
rt_uint16_t rx_len;
|
|
rt_uint8_t rx_buf[SIZE_BUF_UART];
|
|
|
|
struct chrg_switch_t sw[TOTAL_SOUTH_CHS];
|
|
};
|
|
|
|
extern struct chrg_south_t chrgsouth;
|
|
|
|
extern int chrg_south_send (rt_uint8_t *data, rt_size_t length);
|
|
|
|
|
|
#endif
|
|
|