fix for mbed lib issue 3 (i2c problem) see also https://mbed.org/users/mbed_official/code/mbed/issues/3 affected implementations: LPC812, LPC11U24, LPC1768, LPC2368, LPC4088

Fork of mbed-src by mbed official

Embed: (wiki syntax)

« Back to documentation index

ITM Functions

Functions that access the ITM debug interface. More...

Functions

__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
 ITM Send Character.
__STATIC_INLINE int32_t ITM_ReceiveChar (void)
 ITM Receive Character.
__STATIC_INLINE int32_t ITM_CheckChar (void)
 ITM Check Character.

Variables

volatile int32_t ITM_RxBuffer
volatile int32_t ITM_RxBuffer

Detailed Description

Functions that access the ITM debug interface.


Function Documentation

__STATIC_INLINE int32_t ITM_CheckChar ( void   )

ITM Check Character.

The function checks whether a character is pending for reading in the variable ITM_RxBuffer.

Returns:
0 No character available.
1 Character available.

Definition at line 1595 of file core_cm3.h.

__STATIC_INLINE int32_t ITM_ReceiveChar ( void   )

ITM Receive Character.

The function inputs a character via the external variable ITM_RxBuffer.

Returns:
Received character.
-1 No character pending.

Definition at line 1576 of file core_cm3.h.

__STATIC_INLINE uint32_t ITM_SendChar ( uint32_t  ch )

ITM Send Character.

The function 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]chCharacter to transmit.
Returns:
Character to transmit.

Definition at line 1557 of file core_cm3.h.


Variable Documentation

volatile int32_t ITM_RxBuffer

External variable to receive characters.

volatile int32_t ITM_RxBuffer

External variable to receive characters.