File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -96,17 +96,14 @@ am_hal_itm_enable(void)
9696 // Write to the ITM control and status register.
9797 //
9898 ITM -> TCR =
99- _VAL2FLD (ITM_TCR_TraceBusID , 0x15 ) |
99+ _VAL2FLD (ITM_TCR_TRACEBUSID , 0x15 ) |
100100 _VAL2FLD (ITM_TCR_GTSFREQ , 1 ) |
101- _VAL2FLD (ITM_TCR_TSPrescale , 1 ) |
101+ _VAL2FLD (ITM_TCR_TSPRESCALE , 1 ) |
102102 _VAL2FLD (ITM_TCR_SWOENA , 1 ) |
103103 _VAL2FLD (ITM_TCR_DWTENA , 0 ) |
104104 _VAL2FLD (ITM_TCR_SYNCENA , 0 ) |
105105 _VAL2FLD (ITM_TCR_TSENA , 0 ) |
106106 _VAL2FLD (ITM_TCR_ITMENA , 1 );
107-
108-
109-
110107}
111108
112109//*****************************************************************************
Original file line number Diff line number Diff line change @@ -307,13 +307,13 @@ am_hal_tpiu_enable(am_hal_tpiu_config_t *psConfig)
307307 //
308308 // Set for UART mode
309309 //
310- TPIU -> SPPR = _VAL2FLD ( TPI_SPPR_TXMODE , TPI_SPPR_TXMODE_UART );
310+ TPIU -> SPPR = _VAL2FLD (TPIU_SPPR_TXMODE , TPI_SPPR_TXMODE_UART );
311311
312312 //
313313 // Make sure we are not in test mode (important for proper deep sleep
314314 // operation).
315315 //
316- TPIU -> ITCTRL = _VAL2FLD (TPI_ITCTRL_Mode , TPI_ITCTRL_Mode_NORMAL );
316+ TPIU -> ITCTRL = _VAL2FLD (TPIU_ITCTRL_Mode , TPI_ITCTRL_Mode_NORMAL );
317317
318318 //
319319 // Enable the TPIU clock source in MCU control.
@@ -351,7 +351,7 @@ am_hal_tpiu_enable(am_hal_tpiu_config_t *psConfig)
351351 // Make sure we are not in test mode (important for proper deep sleep
352352 // operation).
353353 //
354- TPIU -> ITCTRL = _VAL2FLD (TPI_ITCTRL_Mode , TPI_ITCTRL_Mode_NORMAL );
354+ TPIU -> ITCTRL = _VAL2FLD (TPIU_ITCTRL_Mode , TPI_ITCTRL_Mode_NORMAL );
355355
356356 //
357357 // Set the clock freq and enable fields in the MCUCTRL register.
You can’t perform that action at this time.
0 commit comments