summaryrefslogtreecommitdiff
path: root/software/mpu/board/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/board/board.c')
-rw-r--r--software/mpu/board/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/software/mpu/board/board.c b/software/mpu/board/board.c
index c1a077e..2560a73 100644
--- a/software/mpu/board/board.c
+++ b/software/mpu/board/board.c
@@ -49,4 +49,8 @@ void __early_init(void) {
* Board-specific initialization code.
*/
void boardInit(void) {
+ /*
+ * Disable JTAG-DP and SW-DP.
+ */
+ AFIO->MAPR = AFIO_MAPR_SWJ_CFG_DISABLE;
}