Skip to content

Commit

Permalink
sn32: boot with SWD enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Sep 11, 2024
1 parent 591371f commit 0f6612e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions os/hal/boards/SN_SN32F240/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ void __early_init(void) {
*/
void boardInit(void) {

SN_SYS0->EXRSTCTRL_b.RESETDIS = 1; // Disable RESET
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
}

void restart_usb_driver(USBDriver *usbp) {
Expand Down
2 changes: 0 additions & 2 deletions os/hal/boards/SN_SN32F240B/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ void __early_init(void) {
*/
void boardInit(void) {

SN_SYS0->EXRSTCTRL_b.RESETDIS = 1; // Disable RESET
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
}
2 changes: 1 addition & 1 deletion os/hal/boards/SN_SN32F260/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ void __early_init(void) {
* @brief Board-specific initialization code.
*/
void boardInit(void) {
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD

}
2 changes: 0 additions & 2 deletions os/hal/boards/SN_SN32F280/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ void __early_init(void) {
*/
void boardInit(void) {

SN_SYS0->EXRSTCTRL_b.RESETDIS = 1; // Disable RESET
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
}
2 changes: 0 additions & 2 deletions os/hal/boards/SN_SN32F290/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ void __early_init(void) {
*/
void boardInit(void) {

SN_SYS0->EXRSTCTRL_b.RESETDIS = 1; // Disable RESET
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
}

0 comments on commit 0f6612e

Please sign in to comment.