Skip to content

Commit

Permalink
[Keyboard] Olly Orion: Disable SWD and JTAG (qmk#20169)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Challis <[email protected]>
  • Loading branch information
2 people authored and rodrigob committed Mar 21, 2023
1 parent 62b5f38 commit 05371ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions keyboards/mechlovin/olly/orion/orion.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@

#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(B6);
setPinOutput(B7);
setPinOutput(B8);
setPinOutput(B9);

keyboard_pre_init_user();
}

layer_state_t layer_state_set_kb(layer_state_t state) {
Expand Down

0 comments on commit 05371ff

Please sign in to comment.