[ion] Keyboard: add missing macro to build N0100

This commit is contained in:
Émilie Feral
2019-04-12 11:34:00 +02:00
parent 5df04affd6
commit 25ba28a03e

View File

@@ -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<Config::numberOfRows; i++) {
uint8_t pin = Config::RowPins[i];