Skip to content

Commit

Permalink
Remove setting of PB3 for SWO (#482)
Browse files Browse the repository at this point in the history
- not required anymore as this is now handled in SwoInit()

Signed-off-by: José Simões <[email protected]>
  • Loading branch information
josesimoes authored Sep 4, 2017
1 parent 07f98f0 commit e21091d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ int main(void) {

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)

// need to set SWO pin (PB3) to alternate mode (0 == the status after RESET)
// because it's being to a different function in board config
palSetPadMode(GPIOB, 0x03, PAL_MODE_ALTERNATE(0) );

SwoInit();

#endif

// the following IF is not mandatory, it's just providing a way for a user to 'force'
Expand Down
6 changes: 0 additions & 6 deletions targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ int main(void) {

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)

// need to set SWO pin (PB3) to alternate mode (0 == the status after RESET)
// because it's being to a different function in board config
palSetPadMode(GPIOB, 0x03, PAL_MODE_ALTERNATE(0) );

SwoInit();

#endif

// The kernel is initialized but not started yet, this means that
Expand Down

0 comments on commit e21091d

Please sign in to comment.