diff options
Diffstat (limited to 'nuttx/configs/olimex-strp711/src/up_buttons.c')
-rw-r--r-- | nuttx/configs/olimex-strp711/src/up_buttons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/configs/olimex-strp711/src/up_buttons.c b/nuttx/configs/olimex-strp711/src/up_buttons.c index 2ee386daa..108a5831c 100644 --- a/nuttx/configs/olimex-strp711/src/up_buttons.c +++ b/nuttx/configs/olimex-strp711/src/up_buttons.c @@ -82,15 +82,15 @@ void up_buttoninit(void) /* Configure the GPIO pins as inputs */ reg16 = getreg16(STR71X_GPIO1_PC0); - reg16 |= STR71X_BOTHBUTTONS_GPIO1 + reg16 |= STR71X_BOTHBUTTONS_GPIO1; putreg16(reg16, STR71X_GPIO1_PC0); reg16 = getreg16(STR71X_GPIO1_PC1); - reg16 &= ~STR71X_BOTHBUTTONS_GPIO1 + reg16 &= ~STR71X_BOTHBUTTONS_GPIO1; putreg16(reg16, STR71X_GPIO1_PC1); reg16 = getreg16(STR71X_GPIO1_PC2); - reg16 &= ~STR71X_BOTHBUTTONS_GPIO1 + reg16 &= ~STR71X_BOTHBUTTONS_GPIO1; putreg16(reg16, STR71X_GPIO1_PC2); } |