Skip to content

Commit

Permalink
fixup/platform: adapt uart for STM32U5
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed May 1, 2022
1 parent 57dbce5 commit b2c0d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modm/platform/uart/cortex/itm.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Itm::enable(uint8_t prescaler)
ITM->TPR = 0;

// Trace Control Register
%% if target.platform == "stm32" and target.family == "l5"
%% if target.platform == "stm32" and target.family in ["l5", "u5"]
ITM->TCR = (1 << ITM_TCR_TRACEBUSID_Pos) |
%% else
ITM->TCR = (1 << ITM_TCR_TraceBusID_Pos) |
Expand Down

0 comments on commit b2c0d09

Please sign in to comment.