mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
986488db85
The `SWJ_CFG` field of the `AFIO_MAPR` register is write only and values read are undefined (random). Hence, using `AFIO->MAPR |= mask;` to enable flags can corrupt the state of the `SWJ_CFG` (configure it to an unintended value). Two helper functions have been introduced: - `afio_mapr_read()` reads the value, but sanitizes the `SWJ_CFG` field to zero - `afio_mapr_write()` writes the given value, but applies the `SWJ_CFG` configured by the board before writing. Finally, the `nucleo-f103rb` and `bluepill*`/`blackpill*` boards have been updated to no longer specify `STM32F1_DISABLE_JTAG`, as this is handled by the `SWJ_CFG` setting (which defaults to disabling JTAG).
3 lines
107 B
Makefile
3 lines
107 B
Makefile
# load the common Makefile.include for Nucleo boards
|
|
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|