#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; rt_uint8_t b6; rt_uint8_t b7; }; 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 pwr_lock_off(void); extern void pwr_lock_on(void); extern void output1_off(void); extern void output1_on(void); extern void output2_off(void); extern void output2_on(void); extern void AT_off(void); extern void AT_on(void); extern void beep(void); extern void MenuButtonthread(void); extern void Button_thread(void); extern void thread_beep_init(void); #endif