Skip to content

Commit

Permalink
handwired compiles nscrkbd and flashes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicsuzor committed Jul 5, 2024
1 parent 30943ad commit 8c4e9f2
Show file tree
Hide file tree
Showing 8 changed files with 836 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keyboards/crkbd/keymaps/nic/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

// clang-format off

void keyboard_post_init_user(void) {
// Customise these values to desired behaviour
debug_enable=true;
debug_matrix=true;
debug_keyboard=true;
//debug_mouse=true;
}
#define LAYOUT_crkbd_wrapper(...) LAYOUT_split_3x6_3(__VA_ARGS__)

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand Down
2 changes: 2 additions & 0 deletions keyboards/crkbd/ns/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"keyboard": "crkbd",
"processor": "STM32F303",
"mcu": "STM32F303",
"development_board": "proton_c",
"board": "QMK_PROTON_C",
"bootloader": "stm32-dfu",
"features": {
Expand Down Expand Up @@ -33,6 +34,7 @@
"driver": "ws2812"
},
"split": {
"enabled": true,
"soft_serial_pin": "A10",
"transport": {
"sync": {
Expand Down
27 changes: 27 additions & 0 deletions keyboards/nscrkbd/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* Copyright 2020-2021 PercyJW-2 <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once



#define SELECT_SOFT_SERIAL_SPEED 1
#define SERIAL_USART_DRIVER SD1
#define SERIAL_USART_TX_PAL_MODE 7
#define SERIAL_USART_TIMEOUT 100

// Feature diable options
//#define NO_DEBUG
//#define NO_PRINT
21 changes: 21 additions & 0 deletions keyboards/nscrkbd/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Copyright 2020 QMK
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define HAL_USE_SERIAL TRUE

#include_next <halconf.h>
Loading

0 comments on commit 8c4e9f2

Please sign in to comment.