7 #include PLATFORM_HEADER
10 #include "hal/micro/micro-common.h"
18 for (i = 0; i < boardDescription->
buttons; i++) {
27 int8u port = (button >> 3) & 0xf;
28 int8u pin = button & 0x7;
30 if (button != DUMMY_BUTTON)
32 return (BUTTON_INPUT_GPIO(port) & (1 << pin)) ? BUTTON_RELEASED : BUTTON_PRESSED;
34 return BUTTON_UNKNOWN;