25 #include <util/atomic.h> 61 #define BUTTON_PRESSED 0 64 #define BUTTON_REPEAT 1 67 #define BUTTON_SERVED 7 114 #pragma GCC diagnostic push // avoid false positive on gcc 4.9.2 115 #pragma GCC diagnostic ignored "-Wreturn-type" 118 ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
123 #pragma GCC diagnostic pop 132 ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
232 if (ucbut1 > ucmax) ucbut1 = ucmin;
234 else if ((ucbut0 >= 1) && ((ucbut0 & _BV(
BUTTON_SERVED)) == 0))
238 if (ucbut1 > ucmax) ucbut1 = ucmin;
246 if ((ucbut1 > ucmax) || (ucbut1 < ucmin)) ucbut1 = ucmax;
248 else if ((ucbut0 >= 1) && ((ucbut0 & _BV(
BUTTON_SERVED)) == 0))
252 if ((ucbut1 > ucmax) || (ucbut1 < ucmin)) ucbut1 = ucmax;
#define BUTTON_ENTER_PIN
Pin used for enter button.
#define BUTTON_PINS
Input register used for buttons.
#define BUTTON_BACK_PIN
Pin used for back button.
void WaitTimer(uint16_t usValue)
Wait for usValue milliseconds.
#define BUTTON_DOWN_PIN
Pin used for down button.
#define BUTTON_UP_PIN
Pin used for up button.
System wide Definitions for FREMO Clock.
#define BUTTON_PORT
Port used for buttons.