20 lines
345 B
C
20 lines
345 B
C
#ifndef global_h
|
|
#define global_h
|
|
|
|
#define F_CPU 18432000UL
|
|
|
|
#define BAUD_RATE 9600
|
|
|
|
#define SET(port,pin) (port |= (1<<pin))
|
|
#define CLR(port,pin) (port &= ~(1<<pin))
|
|
#define TOGL(port,pin) (port ^= (1<<pin))
|
|
|
|
|
|
#define LED_PORT PORTD
|
|
#define LED_DDR DDRD
|
|
#define LED_PIN PD3
|
|
|
|
typedef enum { FALSE = 0, TRUE } bool;
|
|
|
|
#endif
|