Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Olly Orion: Disable SWD and JTAG #20169

Merged
merged 3 commits into from
Mar 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion keyboards/mechlovin/olly/orion/orion.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@

#include "orion.h"

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 led_init_ports(void) {
mechlovin marked this conversation as resolved.
Show resolved Hide resolved
setPinOutput(B5);
setPinOutput(B6);
setPinOutput(B7);
setPinOutput(B8);
setPinOutput(B9);

setPinOutput(A13);
setPinOutput(A14);
mechlovin marked this conversation as resolved.
Show resolved Hide resolved
}

layer_state_t layer_state_set_kb(layer_state_t state) {
Expand Down