add bluepill mcu to splittest (#16959)
* add bluepill mcu to splittest * fix typo * refactoring * mcu config goes to mcuconf.h of keyboard * keymap specific config goes to keymap config.h * keyboard specific depending of keymap goes to post_config.h * Apply suggested change Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggested change Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggested change Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggested change Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggested change Co-authored-by: Ryan <fauxpark@gmail.com> * splittest/bluepill: improve documentation Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
b6757d2380
commit
0206bd9df3
21 changed files with 248 additions and 1 deletions
18
keyboards/handwired/splittest/keymaps/bitbang/config.h
Normal file
18
keyboards/handwired/splittest/keymaps/bitbang/config.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2022 dvermd (@dvermd)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define SPLIT_BITBANG
|
||||
|
||||
#define FORCED_SYNC_THROTTLE_MS 100
|
||||
|
||||
#define SELECT_SOFT_SERIAL_SPEED 3 // or 0, 1, 2, 4, 5
|
||||
// 0: about 189kbps (Experimental only)
|
||||
// 1: about 137kbps (default)
|
||||
// 2: about 75kbps
|
||||
// 3: about 39kbps
|
||||
// 4: about 26kbps
|
||||
// 5: about 20kbps
|
11
keyboards/handwired/splittest/keymaps/bitbang/keymap.c
Normal file
11
keyboards/handwired/splittest/keymaps/bitbang/keymap.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)};
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Customise these values to desired behaviour
|
||||
debug_enable = true;
|
||||
debug_matrix = true;
|
||||
debug_keyboard = true;
|
||||
// debug_mouse=true;
|
||||
}
|
1
keyboards/handwired/splittest/keymaps/bitbang/rules.mk
Normal file
1
keyboards/handwired/splittest/keymaps/bitbang/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
SERIAL_DRIVER = bitbang
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2022 dvermd (@dvermd)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define SPLIT_SERIAL_FULLDUPLEX
|
|
@ -0,0 +1,2 @@
|
|||
#define HAL_USE_SERIAL TRUE
|
||||
#include_next <halconf.h>
|
|
@ -0,0 +1,11 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)};
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Customise these values to desired behaviour
|
||||
debug_enable = true;
|
||||
debug_matrix = true;
|
||||
debug_keyboard = true;
|
||||
// debug_mouse=true;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
SERIAL_DRIVER = usart
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2022 dvermd (@dvermd)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define SPLIT_SERIAL_HALFDUPLEX
|
|
@ -0,0 +1,2 @@
|
|||
#define HAL_USE_SERIAL TRUE
|
||||
#include_next <halconf.h>
|
|
@ -0,0 +1,11 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)};
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Customise these values to desired behaviour
|
||||
debug_enable = true;
|
||||
debug_matrix = true;
|
||||
debug_keyboard = true;
|
||||
// debug_mouse=true;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
SERIAL_DRIVER = usart
|
Loading…
Add table
Add a link
Reference in a new issue