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.

17 lines
338 B

  1. #ifndef SWITCH_BOARD_H
  2. #define SWITCH_BOARD_H
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include <avr/io.h>
  6. #define DS_PL_HI() (PORTB |= (1<<PB3))
  7. #define DS_PL_LO() (PORTB &= ~(1<<PB3))
  8. #define CLOCK_PULSE() \
  9. do { \
  10. PORTB |= (1<<PB1); \
  11. asm("nop"); \
  12. PORTB &= ~(1<<PB1); \
  13. } while(0)
  14. #endif