From 25ba28a03e835d85886a6dfc214d274d9fbf9dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 12 Apr 2019 11:34:00 +0200 Subject: [PATCH] [ion] Keyboard: add missing macro to build N0100 --- ion/src/device/shared/drivers/keyboard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ion/src/device/shared/drivers/keyboard.cpp b/ion/src/device/shared/drivers/keyboard.cpp index cde3fa09f..e05094666 100644 --- a/ion/src/device/shared/drivers/keyboard.cpp +++ b/ion/src/device/shared/drivers/keyboard.cpp @@ -79,10 +79,12 @@ namespace Keyboard { using namespace Regs; void init() { +#if REGS_PWR_CONFIG_ADDITIONAL_FIELDS /* PA0 pin is also used as the wake up pin of the standby mode. It has to be * unable to be used in output mode, open-drain for the keyboard. */ PWR.CSR2()->setEWUP1(false); // Disable PA0 as wakeup pin PWR.CR2()->setCWUPF1(true); // Clear wakeup pin flag for PA0 +#endif for (uint8_t i=0; i