pcb and initial code from https://github.com/das-labor/borgware-2d.git
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.
8 lines
233 B
8 lines
233 B
16 years ago
|
|
||
|
#define DDR(port) (*(volatile uint8_t*)((&port)-1))
|
||
15 years ago
|
#define PIN(port) (*(volatile uint8_t*)((&port)-2))
|
||
16 years ago
|
|
||
|
#define DDR_FROM_PIN(pin) (*(volatile uint8_t*)((&pin)+1))
|
||
|
|
||
|
#define PORT_FROM_PIN(pin) (*(volatile uint8_t*)((&pin)+2))
|