From eb86788414125762dada261ac61d02a85a1905b3 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Fri, 2 Sep 2011 22:25:33 +0000 Subject: [PATCH] Tweak formatting --- drivers/avr/pio.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/avr/pio.h b/drivers/avr/pio.h index 29fd287..e6455c7 100644 --- a/drivers/avr/pio.h +++ b/drivers/avr/pio.h @@ -67,7 +67,6 @@ typedef enum pio_config_enum 1 1 Output high */ - /** Define a PIO as a unique 16 bit number encoding the low part of the PORT address offset in the low byte and the bit mask in the high byte. PORTB is used for the pattern since PORTA is not @@ -89,14 +88,16 @@ typedef enum pio_config_enum pattern since PORTA is not always defined for some AVRs. */ #define PIO_DDR_(PIO) (*(PIO_PORT_ (PIO) + (&DDRB - &PORTB))) + /** Private macro to map a pio to its input register (PIN). NB, the PIN and PORT registers must be separated by the same number of bytes in all cases. PORTB is used for the pattern since PORTA is not always defined for some AVRs. */ -#define PIO_PIN_(pio) (*(PIO_PORT_ (pio) + (&PINB - &PORTB))) +#define PIO_PIN_(PIO) (*(PIO_PORT_ (PIO) + (&PINB - &PORTB))) + /** Private macro to access a pio data register. */ -#define PIO_DATA_(pio) (*PIO_PORT_ (pio)) +#define PIO_DATA_(PIO) (*PIO_PORT_ (PIO)) #ifdef DEBUG @@ -209,7 +210,6 @@ pio_config_t pio_config_get (pio_t pio) } - /** Set pio high. @param pio */ static inline