mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
[Keyboard] Olly Orion: Disable SWD and JTAG (#20169)
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
0f07fcc8d4
commit
650a0b8ad4
|
@ -16,13 +16,18 @@
|
||||||
|
|
||||||
#include "orion.h"
|
#include "orion.h"
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void board_init(void) {
|
||||||
|
//JTAG-DP Disabled and SW-DP Enabled
|
||||||
|
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk) | AFIO_MAPR_SWJ_CFG_DISABLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb(void) {
|
||||||
setPinOutput(B5);
|
setPinOutput(B5);
|
||||||
setPinOutput(B6);
|
setPinOutput(B6);
|
||||||
setPinOutput(B7);
|
setPinOutput(B7);
|
||||||
setPinOutput(B8);
|
setPinOutput(B8);
|
||||||
setPinOutput(B9);
|
setPinOutput(B9);
|
||||||
|
keyboard_pre_init_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
layer_state_t layer_state_set_kb(layer_state_t state) {
|
layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||||
|
|
Loading…
Reference in a new issue