#ifndef __display_H
#define __display_H

#define EVENT_clearall (1 << 1)
#define EVENT_clear1 (1 << 2)
#define EVENT_clear2 (1 << 3)
#define EVENT_clear3 (1 << 4)
#define EVENT_clear4 (1 << 5)
#define EVENT_clear5 (1 << 6)
#define EVENT_clear6 (1 << 7)
#define EVENT_KPT_TMRWatch (1 << 8)

#define EVENT_PlanName (1 << 9)
#define EVENT_Current (1 << 10)
#define EVENT_Current_noweight (1 << 11)
#define EVENT_Now (1 << 12)
#define EVENT_Total (1 << 13)
#define EVENT_Next (1 << 14)
#define EVENT_Stop (1 << 15)

extern rt_sem_t display_lock;
extern struct rt_event display_event;
extern unsigned char RemoteSendDisplay;
extern unsigned char WeightConst_displayTotal;
extern unsigned char WeightConst_remoteDisplay;

extern void display_usart_Init(UART_HandleTypeDef* uartHandle);

extern uint8_t MenuItem; //当前菜单
extern unsigned char WeightConst_Weight_display[8];   //显示重量
extern unsigned char WeightConst_Weight_display_old[8];   //显示重量
extern void threadMenuDisplay_init(void);
extern void threadDisplay_init(void);
extern void threadRemoteDisplay_init(void);
extern void threadDisplay_delay_init(void);
extern void ChancheShow(void);
extern void send_uart4_send_data(void);
#endif 
