You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
522 B

  1. #ifndef _LED_H_
  2. #define _LED_H_
  3. #include "hic.h"
  4. #include "basic_type.h"
  5. #include "io_config.h"
  6. #include "t21_t8.h"
  7. #define configDebugLightFlipPeriodMS 300
  8. #define DEBUG_LIGHT_IO() PB4
  9. #define led_on debug_led_port &=~(0x01<<4)
  10. #define led_off debug_led_port |=(0x01<<4)
  11. #define beep_off beep_port &=~(0x01<<0)
  12. #define beep_on beep_port |=(0x01<<0)
  13. void led_config(void);
  14. void beep_config(void);
  15. void jerk_key_config(void);
  16. void debug_light_ctrl_process_in_main_loop();
  17. #endif