master
Stefan Dorn 2016-06-11 22:58:12 +01:00
parent e25b4b3bff
commit a244e9d58d
4 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@
# require "muflax"
LayoutDir = "src/keyboard"
LayoutFile = "#{LayoutDir}/layout.c"
LayoutFile = "#{LayoutDir}/layout_gen.h"
puts "generating #{LayoutFile}..."

View File

@ -46,8 +46,7 @@ typedef void (*void_funptr_t)(void);
*/
#ifndef kb_layout_get
extern const uint8_t PROGMEM \
_kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
extern const uint8_t PROGMEM _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
#define kb_layout_get(layer,row,column) \
( (uint8_t) \
@ -56,8 +55,7 @@ _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
#endif
#ifndef kb_layout_press_get
extern const void_funptr_t PROGMEM \
_kb_layout_press[KB_LAYERS][KB_ROWS][KB_COLUMNS];
extern const void_funptr_t PROGMEM _kb_layout_press[KB_LAYERS][KB_ROWS][KB_COLUMNS];
#define kb_layout_press_get(layer,row,column) \
( (void_funptr_t) \

View File

@ -8,6 +8,7 @@
#include "./main.h"
#include "./keyboard/layout_gen.h"
// ----------------------------------------------------------------------------