diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-20 16:36:04 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-20 16:36:04 +0100 |
commit | 1ac3026c039cb15dd8c110c84215096854c3c804 (patch) | |
tree | 7e03927e10d2339cd0b8906e905a4a5871d58e2d /include/mcu/atmega328p.h | |
parent | 9b98275f519773177039cbc65d500ddefb0d4831 (diff) | |
download | avr-ioe-1ac3026c039cb15dd8c110c84215096854c3c804.tar.gz avr-ioe-1ac3026c039cb15dd8c110c84215096854c3c804.tar.bz2 avr-ioe-1ac3026c039cb15dd8c110c84215096854c3c804.zip |
Some chages in configuration build
Diffstat (limited to 'include/mcu/atmega328p.h')
-rw-r--r-- | include/mcu/atmega328p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mcu/atmega328p.h b/include/mcu/atmega328p.h index 994e9e6..38615bd 100644 --- a/include/mcu/atmega328p.h +++ b/include/mcu/atmega328p.h @@ -9,9 +9,9 @@ #define IO_B 0 #define IO_C 1 #define IO_D 2 -#define IO_PIN(GROUP) (* (volatile uint8_t *)(PINB + 0x3*GROUP)) -#define IO_DDR(GROUP) (* (volatile uint8_t *)(DDRB + 0x3*GROUP)) -#define IO_PORT(GROUP) (* (volatile uint8_t *)(PORTB + 0x3*GROUP)) +#define IO_PIN(GROUP) _SFR_IO8(0x03 * (1 + GROUP)) +#define IO_DDR(GROUP) _SFR_IO8(0x04 * (1 + GROUP)) +#define IO_PORT(GROUP) _SFR_IO8(0x05 * (1 + GROUP)) #define IO_B0 IO_B, (1 << 0) #define IO_B1 IO_B, (1 << 1) #define IO_B2 IO_B, (1 << 2) |