暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

common.h 373B

12345678910111213
  1. #ifndef _COMMON_H_
  2. #define _COMMON_H_
  3. #define CLEAR_STORE_INTERRUPTS() uint8_t prev_int_reg = SREG; cli()
  4. #define RESTORE_INTERRUPTS() SREG = prev_int_reg
  5. //#define CLEAR_STORE_INTERRUPTS() cli()
  6. //#define RESTORE_INTERRUPTS() sei()
  7. void async_beep(int time, int freq);
  8. void blocking_beep(int time, int freq, int repeat = 0);
  9. void common_run(void);
  10. #endif // _COMMON_H_