File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ void mbed_itm_init(void)
4444 ITM -> LAR = ITM_ENABLE_WRITE ;
4545
4646 /* Trace Port Interface Selected Pin Protocol Register. */
47- TPI -> SPPR = (SWO_NRZ << TPI_SPPR_TXMODE_Pos );
47+ TPIU -> SPPR = (SWO_NRZ << TPIU_SPPR_TXMODE_Pos );
4848
4949 /* Trace Port Interface Formatter and Flush Control Register */
50- TPI -> FFCR = (1 << TPI_FFCR_TrigIn_Pos );
50+ TPIU -> FFCR = (1 << TPIU_FFCR_TrigIn_Pos );
5151
5252 /* Data Watchpoint and Trace Control Register */
5353 DWT -> CTRL = (1 << DWT_CTRL_CYCTAP_Pos ) |
@@ -61,7 +61,7 @@ void mbed_itm_init(void)
6161 ITM -> TPR = 0x0 ;
6262
6363 /* Trace Control Register */
64- ITM -> TCR = (1 << ITM_TCR_TraceBusID_Pos ) |
64+ ITM -> TCR = (1 << ITM_TCR_TRACEBUSID_Pos ) |
6565 (1 << ITM_TCR_DWTENA_Pos ) |
6666 (1 << ITM_TCR_SYNCENA_Pos ) |
6767 (1 << ITM_TCR_ITMENA_Pos );
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ void SystemInit(void)
237237 (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos );
238238
239239 /* set prescaler */
240- TPI -> ACPR = 0 ;
240+ TPIU -> ACPR = 0 ;
241241#endif
242242}
243243
You can’t perform that action at this time.
0 commit comments