From 144d3e790cf19f412fd849356a63fa00f0f7e8ec Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 16 Jan 2020 14:40:45 -0700 Subject: [PATCH] Allow common module to compile for AVR --- src/common/keymap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/keymap.c b/src/common/keymap.c index e904100..f032f4b 100644 --- a/src/common/keymap.c +++ b/src/common/keymap.c @@ -1,5 +1,11 @@ #include +// Prevent failures to compile on AVR +//TODO: move to a driver included only on platforms needing it +#ifndef __SDCC + #define __code +#endif + // https://www.win.tue.nl/~aeb/linux/kbd/scancodes-10.html#ss10.3 static uint8_t __code lookup[256] = { 0xff, 0x43, 0x41, 0x3f, 0x3d, 0x3b, 0x3c, 0x58, 0x64, 0x44, 0x42, 0x40, 0x3e, 0x0f, 0x29, 0x59,