#ifndef __button_H
#define __button_H

struct button_state_t {
    rt_uint8_t b1;
	  rt_uint8_t b2;
	  rt_uint8_t b3;
	  rt_uint8_t b4;
	  rt_uint8_t b5;
};

extern struct button_state_t button_state;

extern uint32_t WeightConst_JZZ;    //校正称量的当前位
extern uint8_t WeightConst_JZZ_;         //校正称量的当前位
extern uint32_t WeightConst_ZD;  //最大称量值
extern uint8_t WeightConst_ZD_;          //最大称量的当前位
extern uint32_t Maxval;
extern uint8_t CanButton;
extern void alarm_off(void);
extern void alarm_on(void);
extern void beep(void);
extern void MenuButtonthread(void);
extern void Button_thread(void);
extern void thread_beep_init(void);
#endif 
