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.
 
 
 
 
 

18 lines
338 B

#ifndef SWITCH_BOARD_H
#define SWITCH_BOARD_H
#include <stdint.h>
#include <stdbool.h>
#include <avr/io.h>
#define DS_PL_HI() (PORTB |= (1<<PB3))
#define DS_PL_LO() (PORTB &= ~(1<<PB3))
#define CLOCK_PULSE() \
do { \
PORTB |= (1<<PB1); \
asm("nop"); \
PORTB &= ~(1<<PB1); \
} while(0)
#endif