Functions that access the ITM debug interface.
More...
Functions that access the ITM debug interface.
◆ ITM_RXBUFFER_EMPTY
#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) |
◆ ITM_CheckChar()
◆ ITM_ReceiveChar()
◆ ITM_SendChar()
#include <port/ucontroller/nxp/lpc17xx/bootloader/inc/core_cm3.h>
ITM Send Character.
Transmits a character via the ITM channel 0, and
- Just returns when no debugger is connected that has booked the output.
- Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
- Parameters
-
[in] | ch | Character to transmit. |
- Returns
- Character to transmit.
◆ [] [1/6]
uint32_t { ... } ::_reserved0 |
◆ _reserved0 [2/6]
uint32_t APSR_Type::_reserved0 |
◆ [] [3/6]
uint32_t { ... } ::_reserved0 |
◆ _reserved0 [4/6]
uint32_t IPSR_Type::_reserved0 |
◆ [] [5/6]
uint32_t { ... } ::_reserved0 |
◆ _reserved0 [6/6]
uint32_t xPSR_Type::_reserved0 |
◆ [] [1/4]
uint32_t { ... } ::_reserved1 |
◆ _reserved1 [2/4]
uint32_t CONTROL_Type::_reserved1 |
◆ [] [3/4]
uint32_t { ... } ::_reserved1 |
◆ _reserved1 [4/4]
uint32_t xPSR_Type::_reserved1 |
◆ ACPR
__IOM uint32_t TPI_Type::ACPR |
Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register
◆ ADR
__IM uint32_t SCB_Type::ADR |
Offset: 0x04C (R/ ) Auxiliary Feature Register
◆ AFSR
__IOM uint32_t SCB_Type::AFSR |
Offset: 0x03C (R/W) Auxiliary Fault Status Register
◆ AIRCR
__IOM uint32_t SCB_Type::AIRCR |
Offset: 0x00C (R/W) Application Interrupt and Reset Control Register
◆ [struct] [1/4]
struct { ... } APSR_Type::b |
Structure used for bit access
◆ [struct] [2/4]
struct { ... } CONTROL_Type::b |
Structure used for bit access
◆ [struct] [3/4]
struct { ... } IPSR_Type::b |
Structure used for bit access
◆ [struct] [4/4]
struct { ... } xPSR_Type::b |
Structure used for bit access
◆ BFAR
__IOM uint32_t SCB_Type::BFAR |
Offset: 0x038 (R/W) BusFault Address Register
◆ [] [1/4]
bit: 29 Carry condition code flag
◆ C [2/4]
bit: 29 Carry condition code flag
◆ [] [3/4]
bit: 29 Carry condition code flag
◆ C [4/4]
bit: 29 Carry condition code flag
◆ CALIB
__IM uint32_t SysTick_Type::CALIB |
Offset: 0x00C (R/ ) SysTick Calibration Register
◆ CCR
__IOM uint32_t SCB_Type::CCR |
Offset: 0x014 (R/W) Configuration Control Register
◆ CFSR
__IOM uint32_t SCB_Type::CFSR |
Offset: 0x028 (R/W) Configurable Fault Status Register
◆ CID0
__IM uint32_t ITM_Type::CID0 |
Offset: 0xFF0 (R/ ) ITM Component Identification Register #0
◆ CID1
__IM uint32_t ITM_Type::CID1 |
Offset: 0xFF4 (R/ ) ITM Component Identification Register #1
◆ CID2
__IM uint32_t ITM_Type::CID2 |
Offset: 0xFF8 (R/ ) ITM Component Identification Register #2
◆ CID3
__IM uint32_t ITM_Type::CID3 |
Offset: 0xFFC (R/ ) ITM Component Identification Register #3
◆ CLAIMCLR
__IOM uint32_t TPI_Type::CLAIMCLR |
Offset: 0xFA4 (R/W) Claim tag clear
◆ CLAIMSET
__IOM uint32_t TPI_Type::CLAIMSET |
Offset: 0xFA0 (R/W) Claim tag set
◆ COMP0
__IOM uint32_t DWT_Type::COMP0 |
Offset: 0x020 (R/W) Comparator Register 0
◆ COMP1
__IOM uint32_t DWT_Type::COMP1 |
Offset: 0x030 (R/W) Comparator Register 1
◆ COMP2
__IOM uint32_t DWT_Type::COMP2 |
Offset: 0x040 (R/W) Comparator Register 2
◆ COMP3
__IOM uint32_t DWT_Type::COMP3 |
Offset: 0x050 (R/W) Comparator Register 3
◆ CPACR
__IOM uint32_t SCB_Type::CPACR |
Offset: 0x088 (R/W) Coprocessor Access Control Register
◆ CPICNT
__IOM uint32_t DWT_Type::CPICNT |
Offset: 0x008 (R/W) CPI Count Register
◆ CPUID
__IM uint32_t SCB_Type::CPUID |
Offset: 0x000 (R/ ) CPUID Base Register
◆ CSPSR
__IOM uint32_t TPI_Type::CSPSR |
Offset: 0x004 (R/W) Current Parallel Port Size Register
◆ CTRL [1/2]
__IOM uint32_t DWT_Type::CTRL |
Offset: 0x000 (R/W) Control Register
◆ CTRL [2/2]
__IOM uint32_t SysTick_Type::CTRL |
Offset: 0x000 (R/W) SysTick Control and Status Register
◆ CYCCNT
__IOM uint32_t DWT_Type::CYCCNT |
Offset: 0x004 (R/W) Cycle Count Register
◆ DCRDR
__IOM uint32_t CoreDebug_Type::DCRDR |
Offset: 0x008 (R/W) Debug Core Register Data Register
◆ DCRSR
__OM uint32_t CoreDebug_Type::DCRSR |
Offset: 0x004 ( /W) Debug Core Register Selector Register
◆ DEMCR
__IOM uint32_t CoreDebug_Type::DEMCR |
Offset: 0x00C (R/W) Debug Exception and Monitor Control Register
◆ DEVID
__IM uint32_t TPI_Type::DEVID |
Offset: 0xFC8 (R/ ) TPIU_DEVID
◆ DEVTYPE
__IM uint32_t TPI_Type::DEVTYPE |
Offset: 0xFCC (R/ ) TPIU_DEVTYPE
◆ DFR
__IM uint32_t SCB_Type::DFR |
Offset: 0x048 (R/ ) Debug Feature Register
◆ DFSR
__IOM uint32_t SCB_Type::DFSR |
Offset: 0x030 (R/W) Debug Fault Status Register
◆ DHCSR
__IOM uint32_t CoreDebug_Type::DHCSR |
Offset: 0x000 (R/W) Debug Halting Control and Status Register
◆ EXCCNT
__IOM uint32_t DWT_Type::EXCCNT |
Offset: 0x00C (R/W) Exception Overhead Count Register
◆ FFCR
__IOM uint32_t TPI_Type::FFCR |
Offset: 0x304 (R/W) Formatter and Flush Control Register
◆ FFSR
__IM uint32_t TPI_Type::FFSR |
Offset: 0x300 (R/ ) Formatter and Flush Status Register
◆ FIFO0
__IM uint32_t TPI_Type::FIFO0 |
Offset: 0xEEC (R/ ) Integration ETM Data
◆ FIFO1
__IM uint32_t TPI_Type::FIFO1 |
Offset: 0xEFC (R/ ) Integration ITM Data
◆ FOLDCNT
__IOM uint32_t DWT_Type::FOLDCNT |
Offset: 0x018 (R/W) Folded-instruction Count Register
◆ FSCR
__IM uint32_t TPI_Type::FSCR |
Offset: 0x308 (R/ ) Formatter Synchronization Counter Register
◆ FUNCTION0
__IOM uint32_t DWT_Type::FUNCTION0 |
Offset: 0x028 (R/W) Function Register 0
◆ FUNCTION1
__IOM uint32_t DWT_Type::FUNCTION1 |
Offset: 0x038 (R/W) Function Register 1
◆ FUNCTION2
__IOM uint32_t DWT_Type::FUNCTION2 |
Offset: 0x048 (R/W) Function Register 2
◆ FUNCTION3
__IOM uint32_t DWT_Type::FUNCTION3 |
Offset: 0x058 (R/W) Function Register 3
◆ HFSR
__IOM uint32_t SCB_Type::HFSR |
Offset: 0x02C (R/W) HardFault Status Register
◆ IABR
__IOM uint32_t NVIC_Type::IABR[8U] |
Offset: 0x200 (R/W) Interrupt Active bit Register
◆ ICER
__IOM uint32_t NVIC_Type::ICER[8U] |
Offset: 0x080 (R/W) Interrupt Clear Enable Register
◆ [] [1/2]
uint32_t { ... } ::ICI_IT_1 |
bit: 10..15 ICI/IT part 1
◆ ICI_IT_1 [2/2]
uint32_t xPSR_Type::ICI_IT_1 |
bit: 10..15 ICI/IT part 1
◆ [] [1/2]
uint32_t { ... } ::ICI_IT_2 |
bit: 25..26 ICI/IT part 2
◆ ICI_IT_2 [2/2]
uint32_t xPSR_Type::ICI_IT_2 |
bit: 25..26 ICI/IT part 2
◆ ICPR
__IOM uint32_t NVIC_Type::ICPR[8U] |
Offset: 0x180 (R/W) Interrupt Clear Pending Register
◆ ICSR
__IOM uint32_t SCB_Type::ICSR |
Offset: 0x004 (R/W) Interrupt Control and State Register
◆ ICTR
__IM uint32_t SCnSCB_Type::ICTR |
Offset: 0x004 (R/ ) Interrupt Controller Type Register
◆ IP
__IOM uint8_t NVIC_Type::IP[240U] |
Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide)
◆ ISAR
__IM uint32_t SCB_Type::ISAR[5U] |
Offset: 0x060 (R/ ) Instruction Set Attributes Register
◆ ISER
__IOM uint32_t NVIC_Type::ISER[8U] |
Offset: 0x000 (R/W) Interrupt Set Enable Register
◆ ISPR
__IOM uint32_t NVIC_Type::ISPR[8U] |
Offset: 0x100 (R/W) Interrupt Set Pending Register
◆ [] [1/4]
bit: 0.. 8 Exception number
◆ ISR [2/4]
bit: 0.. 8 Exception number
◆ [] [3/4]
bit: 0.. 8 Exception number
◆ ISR [4/4]
bit: 0.. 8 Exception number
◆ ITATBCTR0
__IM uint32_t TPI_Type::ITATBCTR0 |
Offset: 0xEF8 (R/ ) ITATBCTR0
◆ ITATBCTR2
__IM uint32_t TPI_Type::ITATBCTR2 |
Offset: 0xEF0 (R/ ) ITATBCTR2
◆ ITCTRL
__IOM uint32_t TPI_Type::ITCTRL |
Offset: 0xF00 (R/W) Integration Mode Control
◆ ITM_RxBuffer
volatile int32_t ITM_RxBuffer |
|
extern |
◆ LAR
__OM uint32_t ITM_Type::LAR |
Offset: 0xFB0 ( /W) ITM Lock Access Register
◆ LOAD
__IOM uint32_t SysTick_Type::LOAD |
Offset: 0x004 (R/W) SysTick Reload Value Register
◆ LSR
__IM uint32_t ITM_Type::LSR |
Offset: 0xFB4 (R/ ) ITM Lock Status Register
◆ LSUCNT
__IOM uint32_t DWT_Type::LSUCNT |
Offset: 0x014 (R/W) LSU Count Register
◆ MASK0
__IOM uint32_t DWT_Type::MASK0 |
Offset: 0x024 (R/W) Mask Register 0
◆ MASK1
__IOM uint32_t DWT_Type::MASK1 |
Offset: 0x034 (R/W) Mask Register 1
◆ MASK2
__IOM uint32_t DWT_Type::MASK2 |
Offset: 0x044 (R/W) Mask Register 2
◆ MASK3
__IOM uint32_t DWT_Type::MASK3 |
Offset: 0x054 (R/W) Mask Register 3
◆ MMFAR
__IOM uint32_t SCB_Type::MMFAR |
Offset: 0x034 (R/W) MemManage Fault Address Register
◆ MMFR
__IM uint32_t SCB_Type::MMFR[4U] |
Offset: 0x050 (R/ ) Memory Model Feature Register
◆ [] [1/4]
bit: 31 Negative condition code flag
◆ N [2/4]
bit: 31 Negative condition code flag
◆ [] [3/4]
bit: 31 Negative condition code flag
◆ N [4/4]
bit: 31 Negative condition code flag
◆ [] [1/2]
bit: 0 Execution privilege in Thread mode
◆ nPRIV [2/2]
uint32_t CONTROL_Type::nPRIV |
bit: 0 Execution privilege in Thread mode
◆ PCSR
__IM uint32_t DWT_Type::PCSR |
Offset: 0x01C (R/ ) Program Counter Sample Register
◆ PFR
__IM uint32_t SCB_Type::PFR[2U] |
Offset: 0x040 (R/ ) Processor Feature Register
◆ PID0
__IM uint32_t ITM_Type::PID0 |
Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0
◆ PID1
__IM uint32_t ITM_Type::PID1 |
Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1
◆ PID2
__IM uint32_t ITM_Type::PID2 |
Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2
◆ PID3
__IM uint32_t ITM_Type::PID3 |
Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3
◆ PID4
__IM uint32_t ITM_Type::PID4 |
Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4
◆ PID5
__IM uint32_t ITM_Type::PID5 |
Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5
◆ PID6
__IM uint32_t ITM_Type::PID6 |
Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6
◆ PID7
__IM uint32_t ITM_Type::PID7 |
Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7
◆ [union]
__OM union { ... } ITM_Type::PORT[32U] |
Offset: 0x000 ( /W) ITM Stimulus Port Registers
◆ [] [1/4]
bit: 27 Saturation condition flag
◆ Q [2/4]
bit: 27 Saturation condition flag
◆ [] [3/4]
bit: 27 Saturation condition flag
◆ Q [4/4]
bit: 27 Saturation condition flag
◆ RESERVED0 [1/6]
uint32_t DWT_Type::RESERVED0[1U] |
◆ RESERVED0 [2/6]
uint32_t ITM_Type::RESERVED0[864U] |
◆ RESERVED0 [3/6]
uint32_t NVIC_Type::RESERVED0[24U] |
◆ RESERVED0 [4/6]
uint32_t SCB_Type::RESERVED0[5U] |
◆ RESERVED0 [5/6]
uint32_t SCnSCB_Type::RESERVED0[1U] |
◆ RESERVED0 [6/6]
uint32_t TPI_Type::RESERVED0[2U] |
◆ RESERVED1 [1/5]
uint32_t DWT_Type::RESERVED1[1U] |
◆ RESERVED1 [2/5]
uint32_t ITM_Type::RESERVED1[15U] |
◆ RESERVED1 [3/5]
uint32_t NVIC_Type::RESERVED1[24U] |
◆ RESERVED1 [4/5]
uint32_t SCnSCB_Type::RESERVED1[1U] |
◆ RESERVED1 [5/5]
uint32_t TPI_Type::RESERVED1[55U] |
◆ RESERVED2 [1/4]
uint32_t DWT_Type::RESERVED2[1U] |
◆ RESERVED2 [2/4]
uint32_t ITM_Type::RESERVED2[15U] |
◆ RESERVED2 [3/4]
uint32_t NVIC_Type::RESERVED2[24U] |
◆ RESERVED2 [4/4]
uint32_t TPI_Type::RESERVED2[131U] |
◆ RESERVED3 [1/3]
uint32_t ITM_Type::RESERVED3[32U] |
◆ RESERVED3 [2/3]
uint32_t NVIC_Type::RESERVED3[24U] |
◆ RESERVED3 [3/3]
uint32_t TPI_Type::RESERVED3[759U] |
◆ RESERVED4 [1/3]
uint32_t ITM_Type::RESERVED4[43U] |
◆ RESERVED4 [2/3]
uint32_t NVIC_Type::RESERVED4[56U] |
◆ RESERVED4 [3/3]
uint32_t TPI_Type::RESERVED4[1U] |
◆ RESERVED5 [1/3]
uint32_t ITM_Type::RESERVED5[6U] |
◆ RESERVED5 [2/3]
uint32_t NVIC_Type::RESERVED5[644U] |
◆ RESERVED5 [3/3]
uint32_t TPI_Type::RESERVED5[39U] |
◆ RESERVED7
uint32_t TPI_Type::RESERVED7[8U] |
◆ SCR
__IOM uint32_t SCB_Type::SCR |
Offset: 0x010 (R/W) System Control Register
◆ SHCSR
__IOM uint32_t SCB_Type::SHCSR |
Offset: 0x024 (R/W) System Handler Control and State Register
◆ SHP
__IOM uint8_t SCB_Type::SHP[12U] |
Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15)
◆ SLEEPCNT
__IOM uint32_t DWT_Type::SLEEPCNT |
Offset: 0x010 (R/W) Sleep Count Register
◆ SPPR
__IOM uint32_t TPI_Type::SPPR |
Offset: 0x0F0 (R/W) Selected Pin Protocol Register
◆ [] [1/2]
◆ SPSEL [2/2]
uint32_t CONTROL_Type::SPSEL |
◆ SSPSR
__IM uint32_t TPI_Type::SSPSR |
Offset: 0x000 (R/ ) Supported Parallel Port Size Register
◆ STIR
__OM uint32_t NVIC_Type::STIR |
Offset: 0xE00 ( /W) Software Trigger Interrupt Register
◆ [] [1/2]
◆ T [2/2]
◆ TCR
__IOM uint32_t ITM_Type::TCR |
Offset: 0xE80 (R/W) ITM Trace Control Register
◆ TER
__IOM uint32_t ITM_Type::TER |
Offset: 0xE00 (R/W) ITM Trace Enable Register
◆ TPR
__IOM uint32_t ITM_Type::TPR |
Offset: 0xE40 (R/W) ITM Trace Privilege Register
◆ TRIGGER
__IM uint32_t TPI_Type::TRIGGER |
Offset: 0xEE8 (R/ ) TRIGGER Register
◆ [] [1/2]
__OM uint16_t { ... } ::u16 |
Offset: 0x000 ( /W) ITM Stimulus Port 16-bit
◆ u16 [2/2]
__OM uint16_t ITM_Type::u16 |
Offset: 0x000 ( /W) ITM Stimulus Port 16-bit
◆ [] [1/2]
__OM uint32_t { ... } ::u32 |
Offset: 0x000 ( /W) ITM Stimulus Port 32-bit
◆ u32 [2/2]
__OM uint32_t ITM_Type::u32 |
Offset: 0x000 ( /W) ITM Stimulus Port 32-bit
◆ [] [1/2]
__OM uint8_t { ... } ::u8 |
Offset: 0x000 ( /W) ITM Stimulus Port 8-bit
◆ u8 [2/2]
__OM uint8_t ITM_Type::u8 |
Offset: 0x000 ( /W) ITM Stimulus Port 8-bit
◆ [] [1/4]
bit: 28 Overflow condition code flag
◆ V [2/4]
bit: 28 Overflow condition code flag
◆ [] [3/4]
bit: 28 Overflow condition code flag
◆ V [4/4]
bit: 28 Overflow condition code flag
◆ VAL
__IOM uint32_t SysTick_Type::VAL |
Offset: 0x008 (R/W) SysTick Current Value Register
◆ VTOR
__IOM uint32_t SCB_Type::VTOR |
Offset: 0x008 (R/W) Vector Table Offset Register
◆ w [1/4]
Type used for word access
◆ w [2/4]
Type used for word access
◆ w [3/4]
Type used for word access
◆ w [4/4]
Type used for word access
◆ [] [1/4]
bit: 30 Zero condition code flag
◆ Z [2/4]
bit: 30 Zero condition code flag
◆ [] [3/4]
bit: 30 Zero condition code flag
◆ Z [4/4]
bit: 30 Zero condition code flag