diff options
Diffstat (limited to 'keyboards/gonnerd')
| -rw-r--r-- | keyboards/gonnerd/Makefile | 3 | ||||
| -rw-r--r-- | keyboards/gonnerd/config.h | 43 | ||||
| -rw-r--r-- | keyboards/gonnerd/gonnerd.c | 1 | ||||
| -rw-r--r-- | keyboards/gonnerd/gonnerd.h | 42 | ||||
| -rw-r--r-- | keyboards/gonnerd/keymaps/default/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/gonnerd/keymaps/default/keymap.c | 16 | ||||
| -rw-r--r-- | keyboards/gonnerd/keymaps/mauin/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/gonnerd/keymaps/mauin/keymap.c | 78 | ||||
| -rw-r--r-- | keyboards/gonnerd/keymaps/mauin/readme.md | 5 | ||||
| -rw-r--r-- | keyboards/gonnerd/readme.md | 34 | ||||
| -rw-r--r-- | keyboards/gonnerd/rules.mk | 66 |
11 files changed, 330 insertions, 0 deletions
diff --git a/keyboards/gonnerd/Makefile b/keyboards/gonnerd/Makefile new file mode 100644 index 000000000..57b2ef62e --- /dev/null +++ b/keyboards/gonnerd/Makefile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef MAKEFILE_INCLUDED | ||
| 2 | include ../../Makefile | ||
| 3 | endif | ||
diff --git a/keyboards/gonnerd/config.h b/keyboards/gonnerd/config.h new file mode 100644 index 000000000..cad8fe586 --- /dev/null +++ b/keyboards/gonnerd/config.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | #ifndef CONFIG_H | ||
| 2 | #define CONFIG_H | ||
| 3 | |||
| 4 | #include "config_common.h" | ||
| 5 | |||
| 6 | /* USB Device descriptor parameter */ | ||
| 7 | #define VENDOR_ID 0xFEED | ||
| 8 | #define PRODUCT_ID 0x6060 | ||
| 9 | #define DEVICE_VER 0x0001 | ||
| 10 | #define MANUFACTURER GON | ||
| 11 | #define PRODUCT NerD | ||
| 12 | #define DESCRIPTION QMK port for the GON Nerd PCB | ||
| 13 | |||
| 14 | /* key matrix size */ | ||
| 15 | #define MATRIX_ROWS 10 | ||
| 16 | #define MATRIX_COLS 9 | ||
| 17 | |||
| 18 | /* backlight */ | ||
| 19 | #define BACKLIGHT_PIN B7 | ||
| 20 | #define BACKLIGHT_LEVELS 3 | ||
| 21 | |||
| 22 | /* matrix pins */ | ||
| 23 | #define MATRIX_ROW_PINS { B4, E2, F4, F7, F1, F6, C6, F5, D7, C7 } | ||
| 24 | #define MATRIX_COL_PINS { E6, B0, B1, B2, B3, F0, D0, D5, D1 } | ||
| 25 | #define UNUSED_PINS | ||
| 26 | |||
| 27 | /* COL2ROW or ROW2COL */ | ||
| 28 | #define DIODE_DIRECTION COL2ROW | ||
| 29 | |||
| 30 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 31 | #define DEBOUNCING_DELAY 5 | ||
| 32 | |||
| 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 34 | #define LOCKING_SUPPORT_ENABLE | ||
| 35 | /* Locking resynchronize hack */ | ||
| 36 | #define LOCKING_RESYNC_ENABLE | ||
| 37 | |||
| 38 | /* key combination for magic key command */ | ||
| 39 | #define IS_COMMAND() ( \ | ||
| 40 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 41 | ) | ||
| 42 | |||
| 43 | #endif | ||
diff --git a/keyboards/gonnerd/gonnerd.c b/keyboards/gonnerd/gonnerd.c new file mode 100644 index 000000000..f25d3a85f --- /dev/null +++ b/keyboards/gonnerd/gonnerd.c | |||
| @@ -0,0 +1 @@ | |||
| #include "gonnerd.h" | |||
diff --git a/keyboards/gonnerd/gonnerd.h b/keyboards/gonnerd/gonnerd.h new file mode 100644 index 000000000..e5070328e --- /dev/null +++ b/keyboards/gonnerd/gonnerd.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | #ifndef GONNERD_H | ||
| 2 | #define GONNERD_H | ||
| 3 | |||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | #define KEYMAP_TKL( \ | ||
| 7 | K08, K09, K18, K19, K28, K29, K38, K39, K48, K49, K58, K59, K68, K69, K88, K89, \ | ||
| 8 | K00, K01, K10, K11, K20, K21, K30, K31, K40, K41, K50, K51, K60, K61, K80, K81, K84, \ | ||
| 9 | K02, K03, K12, K13, K22, K23, K32, K33, K42, K43, K52, K53, K62, K63, K82, K83, K85, \ | ||
| 10 | K04, K14, K15, K24, K25, K34, K35, K44, K45, K54, K55, K64, K71, K65, \ | ||
| 11 | K07, K79, K16, K17, K26, K27, K36, K37, K46, K47, K56, K57, K66, K67, K86, \ | ||
| 12 | K06, K05, K78, K70, K72, K73, K74, K75, K76, K77, K87 \ | ||
| 13 | ) \ | ||
| 14 | { \ | ||
| 15 | { K00, K10, K20, K30, K40, K50, K60, K70, K80 }, \ | ||
| 16 | { K01, K11, K21, K31, K41, K51, K61, K71, K81 }, \ | ||
| 17 | { K02, K12, K22, K32, K42, K52, K62, K72, K82 }, \ | ||
| 18 | { K03, K13, K23, K33, K43, K53, K63, K73, K83 }, \ | ||
| 19 | { K04, K14, K24, K34, K44, K54, K64, K74, K84 }, \ | ||
| 20 | { K05, K15, K25, K35, K45, K55, K65, K75, K85 }, \ | ||
| 21 | { K06, K16, K26, K36, K46, K56, K66, K76, K86 }, \ | ||
| 22 | { K07, K17, K27, K37, K47, K57, K67, K77, K87 }, \ | ||
| 23 | { K08, K18, K28, K38, K48, K58, K68, K78, K88 }, \ | ||
| 24 | { K09, K19, K29, K39, K49, K59, K69, K79, K89 } \ | ||
| 25 | } | ||
| 26 | |||
| 27 | #define KEYMAP_60( \ | ||
| 28 | K08, K01, K10, K11, K20, K21, K30, K31, K40, K41, K50, K51, K60, K61, \ | ||
| 29 | K02, K03, K12, K13, K22, K23, K32, K33, K42, K43, K52, K53, K62, K63, \ | ||
| 30 | K04, K14, K15, K24, K25, K34, K35, K44, K45, K54, K55, K64, K71, K65, \ | ||
| 31 | K07, K79, K16, K17, K26, K27, K36, K37, K46, K47, K56, K57, K66, K67, \ | ||
| 32 | K06, K05, K78, K70, K72, K73, K74, K75 \ | ||
| 33 | ) KEYMAP_TKL( \ | ||
| 34 | K08, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ | ||
| 35 | KC_NO, K01, K10, K11, K20, K21, K30, K31, K40, K41, K50, K51, K60, K61, KC_NO, KC_NO, KC_NO, \ | ||
| 36 | K02, K03, K12, K13, K22, K23, K32, K33, K42, K43, K52, K53, K62, K63, KC_NO, KC_NO, KC_NO, \ | ||
| 37 | K04, K14, K15, K24, K25, K34, K35, K44, K45, K54, K55, K64, K71, K65, \ | ||
| 38 | K07, K79, K16, K17, K26, K27, K36, K37, K46, K47, K56, K57, K66, K67, KC_NO, \ | ||
| 39 | K06, K05, K78, K70, K72, K73, K74, K75, KC_NO, KC_NO, KC_NO \ | ||
| 40 | ) | ||
| 41 | |||
| 42 | #endif | ||
diff --git a/keyboards/gonnerd/keymaps/default/Makefile b/keyboards/gonnerd/keymaps/default/Makefile new file mode 100644 index 000000000..772d7aee3 --- /dev/null +++ b/keyboards/gonnerd/keymaps/default/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif | ||
diff --git a/keyboards/gonnerd/keymaps/default/keymap.c b/keyboards/gonnerd/keymaps/default/keymap.c new file mode 100644 index 000000000..a37005939 --- /dev/null +++ b/keyboards/gonnerd/keymaps/default/keymap.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #include "gonnerd.h" | ||
| 2 | |||
| 3 | // Keymap layers | ||
| 4 | |||
| 5 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 6 | [0] = KEYMAP_60( /* Base */ | ||
| 7 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC,\ | ||
| 8 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS,\ | ||
| 9 | KC_LCTL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_NO, KC_ENT, \ | ||
| 10 | KC_LSFT,KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT,KC_NO, \ | ||
| 11 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI,MO(1), KC_RCTL), | ||
| 12 | }; | ||
| 13 | |||
| 14 | const uint16_t PROGMEM fn_actions[] = { | ||
| 15 | |||
| 16 | }; | ||
diff --git a/keyboards/gonnerd/keymaps/mauin/Makefile b/keyboards/gonnerd/keymaps/mauin/Makefile new file mode 100644 index 000000000..772d7aee3 --- /dev/null +++ b/keyboards/gonnerd/keymaps/mauin/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif | ||
diff --git a/keyboards/gonnerd/keymaps/mauin/keymap.c b/keyboards/gonnerd/keymaps/mauin/keymap.c new file mode 100644 index 000000000..1a1d515a9 --- /dev/null +++ b/keyboards/gonnerd/keymaps/mauin/keymap.c | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | #include "gonnerd.h" | ||
| 2 | |||
| 3 | // Keymap layers | ||
| 4 | #define BASE_LAYER 0 | ||
| 5 | #define FUNCTION_LAYER 1 | ||
| 6 | #define SYSTEM_LAYER 2 | ||
| 7 | |||
| 8 | // Key aliases | ||
| 9 | #define __x__ KC_NO | ||
| 10 | |||
| 11 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 12 | /* Layer 0: Default Layer | ||
| 13 | * ,-----------------------------------------------------------. | ||
| 14 | * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| = | BSp | | ||
| 15 | * |-----------------------------------------------------------| | ||
| 16 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | ||
| 17 | * |-----------------------------------------------------------| | ||
| 18 | * |Funct | A| S| D| F| G| H| J| K| L| ;| '|Enter | | ||
| 19 | * |-----------------------------------------------------------| | ||
| 20 | * |Shift | Z| X| C| V| B| N| M| ,| .| /| Shift | | ||
| 21 | * |-----------------------------------------------------------' | ||
| 22 | * | Ctl|Alt|Gui | Space |Gui |Alt| F2| Ctl | | ||
| 23 | * `-----------------------------------------------------------' | ||
| 24 | */ | ||
| 25 | [BASE_LAYER] = KEYMAP_60( | ||
| 26 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, \ | ||
| 27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
| 28 | MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, __x__, KC_ENT, \ | ||
| 29 | KC_LSFT, __x__, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, __x__, \ | ||
| 30 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(3), KC_RCTL \ | ||
| 31 | ), | ||
| 32 | |||
| 33 | /* Layer 1: Function Layer | ||
| 34 | * ,-----------------------------------------------------------. | ||
| 35 | * | | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11| F12| Del | | ||
| 36 | * |-----------------------------------------------------------| | ||
| 37 | * | |Prv|Ply|Nxt| | |Pg^|Hme|Up |End| |Br-|Br+| | | ||
| 38 | * |-----------------------------------------------------------| | ||
| 39 | * |Hold |Mte|Vl-|Vl+| | |Pgv|Lft|Dwn|Rgt| | | | | ||
| 40 | * |-----------------------------------------------------------| | ||
| 41 | * | | | | | | | | | | | | | | ||
| 42 | * |-----------------------------------------------------------' | ||
| 43 | * | | | | | | | | | | ||
| 44 | * `-----------------------------------------------------------' | ||
| 45 | */ | ||
| 46 | [FUNCTION_LAYER] = KEYMAP_60( | ||
| 47 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, \ | ||
| 48 | __x__, KC_MPRV, KC_MPLY, KC_MNXT, __x__, __x__, KC_PGUP, KC_HOME, KC_UP, KC_END, __x__, KC_SLCK, KC_PAUS, __x__, \ | ||
| 49 | KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, __x__, __x__, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, __x__, __x__, __x__, __x__, \ | ||
| 50 | KC_LSFT, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, \ | ||
| 51 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, __x__, __x__, __x__, __x__ \ | ||
| 52 | ), | ||
| 53 | |||
| 54 | /* Layer 2: System Layer | ||
| 55 | * ,-----------------------------------------------------------. | ||
| 56 | * |Reset| | | | | | | | | | | | | | | ||
| 57 | * |-----------------------------------------------------------| | ||
| 58 | * | | | | | | | | | | | | | | | | ||
| 59 | * |-----------------------------------------------------------| | ||
| 60 | * | | | | | | | | | | | | | | | ||
| 61 | * |-----------------------------------------------------------| | ||
| 62 | * | | | | | | | | | | | | | | ||
| 63 | * |-----------------------------------------------------------' | ||
| 64 | * | | | | | | | | | | ||
| 65 | * `-----------------------------------------------------------' | ||
| 66 | */ | ||
| 67 | [SYSTEM_LAYER] = KEYMAP_60( | ||
| 68 | RESET, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, \ | ||
| 69 | __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, \ | ||
| 70 | __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, \ | ||
| 71 | __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, __x__, \ | ||
| 72 | __x__, __x__, __x__, __x__, __x__, __x__, KC_TRNS, __x__ \ | ||
| 73 | ), | ||
| 74 | }; | ||
| 75 | |||
| 76 | const uint16_t PROGMEM fn_actions[] = { | ||
| 77 | |||
| 78 | }; | ||
diff --git a/keyboards/gonnerd/keymaps/mauin/readme.md b/keyboards/gonnerd/keymaps/mauin/readme.md new file mode 100644 index 000000000..63be7c392 --- /dev/null +++ b/keyboards/gonnerd/keymaps/mauin/readme.md | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # Mauin's keymap for the GON NerD | ||
| 2 | |||
| 3 | This layout is based on a Pok3r style layout with a standard base layer. | ||
| 4 | |||
| 5 | Function layers provide access to navigation and media keys. | ||
diff --git a/keyboards/gonnerd/readme.md b/keyboards/gonnerd/readme.md new file mode 100644 index 000000000..1224ff6b0 --- /dev/null +++ b/keyboards/gonnerd/readme.md | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | GON NerD keyboard firmware | ||
| 2 | ====================== | ||
| 3 | |||
| 4 | ## Changing Bootloader | ||
| 5 | |||
| 6 | It's not possible to simply flash this firmware on the GON NerD keyboard as the original bootloader does not support DFU connections. | ||
| 7 | |||
| 8 | It is possible to change the bootloader of the GON NerD with an ISP programmer. A guide on how to change the bootloader on your GON NerD can be found here: | ||
| 9 | [Converting NerD60 to TMK](https://deskthority.net/wiki/Converting_NerD60_to_TMK). After changing the bootloader you can flash your QMK keymap onto the keyboard. | ||
| 10 | |||
| 11 | _After changing the bootloader on your GON NerD PCB you will not be able to go back to the original firmware and the official configuration software will | ||
| 12 | not work anymore. You will lose your warranty and official support from GON!_ | ||
| 13 | |||
| 14 | ## Building | ||
| 15 | |||
| 16 | Download or clone the whole firmware and navigate to the keyboards/gonnerd folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use the Teensy Loader to program your .hex file. | ||
| 17 | |||
| 18 | Depending on which keymap you would like to use, you will have to compile slightly differently. | ||
| 19 | |||
| 20 | ### Default | ||
| 21 | |||
| 22 | To build with the default keymap, simply run `make default`. | ||
| 23 | |||
| 24 | ### Other Keymaps | ||
| 25 | |||
| 26 | Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create a folder with the name of your keymap in the keymaps folder, and see keymap documentation (you can find in top readme.md) and existant keymap files. | ||
| 27 | |||
| 28 | To build the firmware binary hex file with a keymap just do `make` with a keymap like this: | ||
| 29 | |||
| 30 | ``` | ||
| 31 | $ make [default|jack|<name>] | ||
| 32 | ``` | ||
| 33 | |||
| 34 | Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. | ||
diff --git a/keyboards/gonnerd/rules.mk b/keyboards/gonnerd/rules.mk new file mode 100644 index 000000000..c9b584d54 --- /dev/null +++ b/keyboards/gonnerd/rules.mk | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 8000000 | ||
| 16 | |||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Boot Section Size in *bytes* | ||
| 42 | # Teensy halfKay 512 | ||
| 43 | # Teensy++ halfKay 1024 | ||
| 44 | # Atmel DFU loader 4096 | ||
| 45 | # LUFA bootloader 4096 | ||
| 46 | # USBaspLoader 2048 | ||
| 47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 48 | |||
| 49 | |||
| 50 | # Build Options | ||
| 51 | # change yes to no to disable | ||
| 52 | # | ||
| 53 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
| 54 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
| 55 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
| 56 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
| 57 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
| 58 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 59 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
| 60 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 61 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
| 62 | BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality on B7 by default | ||
| 63 | MIDI_ENABLE ?= no # MIDI controls | ||
| 64 | UNICODE_ENABLE ?= no # Unicode | ||
| 65 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 66 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
