Allow common module to compile for AVR

This commit is contained in:
Jeremy Soller 2020-01-16 14:40:45 -07:00
parent 76ccd941c4
commit 144d3e790c
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -1,5 +1,11 @@
#include <common/keymap.h>
// 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,