12345678910111213 |
- #ifndef _COMMON_H_
- #define _COMMON_H_
-
- #define CLEAR_STORE_INTERRUPTS() uint8_t prev_int_reg = SREG; cli()
- #define RESTORE_INTERRUPTS() SREG = prev_int_reg
- //#define CLEAR_STORE_INTERRUPTS() cli()
- //#define RESTORE_INTERRUPTS() sei()
-
- void async_beep(int time, int freq);
- void blocking_beep(int time, int freq, int repeat = 0);
- void common_run(void);
-
- #endif // _COMMON_H_
|