Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Instrumented Trace Macrocell HAL API
Functions | |
void | itm_init (void) |
Target specific initialization function. | |
void | mbed_itm_init (void) |
Initialization function for both generic registers and target specific clock and pin. | |
uint32_t | mbed_itm_send (uint32_t port, uint32_t data) |
Send data over ITM stimulus port. |
Function Documentation
void itm_init | ( | void | ) |
Target specific initialization function.
This function is responsible for initializing and configuring the debug clock for the ITM and setting up the SWO pin for debug output.
The only Cortex-M register that should be modified is the clock prescaler in TPI->ACPR.
The generic mbed_itm_init initialization function will setup:
ITM->LAR ITM->TPR ITM->TCR ITM->TER TPI->SPPR TPI->FFCR DWT->CTRL
for SWO output on stimulus port 0.
void mbed_itm_init | ( | void | ) |
Initialization function for both generic registers and target specific clock and pin.
Definition at line 29 of file mbed_itm_api.c.
uint32_t mbed_itm_send | ( | uint32_t | port, |
uint32_t | data | ||
) |
Send data over ITM stimulus port.
- Parameters:
-
[in] port The stimulus port to send data over. [in] data The data to send.
- Returns:
- value of data sent.
Definition at line 69 of file mbed_itm_api.c.
Generated on Tue Jul 12 2022 13:32:36 by
