Brak opisu
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.

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_