QMK DFU bootloader generation (#2009)

* adds :bootloader target

* update planck and preonic revisions

* remove references to .h files for planck

* update preonic keymap

* only add keyboard.h files that exist

* add production target

* hook things up with the new lufa variables

* update rules for planck/preonic

* back backlight key turn of status led when pressed

* add manufacturer/product strings to bootloader
This commit is contained in:
Jack Humbert
2017-11-14 16:11:29 -05:00
committed by GitHub
parent 3c15c48e6a
commit ec3e065f0d
27 changed files with 171 additions and 45 deletions

View File

@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6060
#define MANUFACTURER OLKB
#define PRODUCT The Planck Keyboard
#define PRODUCT Planck
#define DESCRIPTION A compact ortholinear keyboard
/* key matrix size */
@@ -36,6 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
#define UNUSED_PINS
#define QMK_ESC_OUTPUT F1
#define QMK_ESC_INPUT D5
#define QMK_LED E6
#define QMK_SPEAKER C6
#define AUDIO_VOICES
#define C6_AUDIO

View File

@@ -224,8 +224,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef BACKLIGHT_ENABLE
backlight_step();
#endif
PORTE &= ~(1<<6);
} else {
unregister_code(KC_RSFT);
PORTE |= (1<<6);
}
return false;
break;

View File

@@ -32,11 +32,4 @@
#define KEYMAP LAYOUT_planck_grid
#define LAYOUT_ortho_4x12 LAYOUT_planck_grid
#ifdef KEYBOARD_planck_rev3
#include "rev3.h"
#endif
#ifdef KEYBOARD_planck_rev4
#include "rev4.h"
#endif
#endif

View File

@@ -1 +0,0 @@
#include "rev3.h"

View File

@@ -1,6 +0,0 @@
#ifndef REV3_H
#define REV3_H
#include "planck.h"
#endif

View File

@@ -1 +0,0 @@
#include "rev4.h"

View File

@@ -1,6 +0,0 @@
#ifndef REV4_H
#define REV4_H
#include "planck.h"
#endif

View File

@@ -0,0 +1,8 @@
#ifndef REV5_CONFIG_H
#define REV5_CONFIG_H
#include "config_common.h"
#define DEVICE_VER 0x0005
#endif

View File

@@ -0,0 +1,3 @@
{
"identifier": "FEED:6060:0005"
}

View File

@@ -0,0 +1 @@
AUDIO_ENABLE = yes # Audio output on port C6

View File

@@ -69,4 +69,4 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
LAYOUTS = ortho_4x12 planck_mit planck_grid
DEFAULT_FOLDER = planck/rev4
DEFAULT_FOLDER = planck/rev5