X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fhw%2Fhw_input.h;h=f0ef721cf89fc1246c165d9643e64d23c52f8631;hb=391b4f8d9c82c413f2cd11fb3ba3aeb311f62184;hp=e3dcf1c455d841f4a70b346a28a2628ff82d5ead;hpb=24c21c92d29b76a3f0de0a107f4bafef7bb0f812;p=bertos.git diff --git a/examples/triface/hw/hw_input.h b/examples/triface/hw/hw_input.h index e3dcf1c4..f0ef721c 100644 --- a/examples/triface/hw/hw_input.h +++ b/examples/triface/hw/hw_input.h @@ -33,9 +33,6 @@ * * \brief Macro for HW_INPUT_H * - * - * \version $Id$ - * * \author Andrea Grandi */ @@ -45,14 +42,14 @@ #include /* Set pins as input and enable pull-up */ -#define INPUT_INIT_D do \ +#define INPUT_INIT_D do \ { \ (DDRD &= ~(BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7))); \ (PORTD |= (BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7))); \ } while(0) #define INPUT_INIT_E do \ -{ \ +{ \ (DDRE &= ~(BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7))); \ ATOMIC((PORTE |= (BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7)))); \ } while(0)