1
0
Fork 0

Onekey: migrate some stuff to data driven (#18502)

This commit is contained in:
Ryan 2022-09-30 04:23:11 +10:00 committed by GitHub
parent bad8c67189
commit 45b5ed5c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 259 additions and 335 deletions

View file

@ -19,9 +19,6 @@
// TODO: including this causes "error: expected identifier before '(' token" errors
//#include "config_common.h"
#define MATRIX_COL_PINS { D5 } // 20/A6
#define MATRIX_ROW_PINS { B2 } // 19/A5
// i2c_master defines
#define I2C1_SCL_PIN B0 // 16/A2 on pinout
#define I2C1_SDA_PIN B1 // 17/A3 on pinout

View file

@ -1,3 +1,9 @@
{
"keyboard_name": "Onekey Teensy 3.5"
"keyboard_name": "Onekey Teensy 3.5",
"processor": "MK64FX512",
"bootloader": "halfkay",
"matrix_pins": {
"cols": ["D5"], // 20/A6
"rows": ["B2"] // 19/A5
}
}

View file

@ -1,8 +1,2 @@
# MCU name
MCU = MK64FX512
# Bootloader selection
BOOTLOADER = halfkay
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE