forkd

Dependencies:   mbed

Fork of LGstaandart by Dmitry Kovalev

Embed: (wiki syntax)

« Back to documentation index

CMSIS CM3 Core Debug Interface

CMSIS CM3 Core Debug Interface
[CM3 Core Definitions]

Core Debug Interface containing:

  • Core Debug Receive / Transmit Functions
  • Core Debug Defines
  • Core Debug Variables.
More...

Functions

static __INLINE uint32_t ITM_SendChar (uint32_t ch)
 Outputs a character via the ITM channel 0.
static __INLINE int ITM_ReceiveChar (void)
 Inputs a character via variable ITM_RxBuffer.
static __INLINE int ITM_CheckChar (void)
 Check if a character via variable ITM_RxBuffer is available.

Variables

volatile int ITM_RxBuffer

Detailed Description

Core Debug Interface containing:

  • Core Debug Receive / Transmit Functions
  • Core Debug Defines
  • Core Debug Variables.

Function Documentation

static __INLINE int ITM_CheckChar ( void   ) [static]

Check if a character via variable ITM_RxBuffer is available.

Returns:
1 = character available, 0 = no character available

The function checks variable ITM_RxBuffer whether a character is available or not. The function returns '1' if a character is available and '0' if no character is available.

Definition at line 1848 of file core_cm3.h.

static __INLINE int ITM_ReceiveChar ( void   ) [static]

Inputs a character via variable ITM_RxBuffer.

Returns:
received character, -1 = no character received

The function inputs a character via variable ITM_RxBuffer. The function returns when no debugger is connected that has booked the output. It is blocking when a debugger is connected, but the previous character send is not transmitted.

Definition at line 1827 of file core_cm3.h.

static __INLINE uint32_t ITM_SendChar ( uint32_t  ch ) [static]

Outputs a character via the ITM channel 0.

Parameters:
chcharacter to output
Returns:
character to output

The function outputs a character via the ITM channel 0. The function returns when no debugger is connected that has booked the output. It is blocking when a debugger is connected, but the previous character send is not transmitted.

Definition at line 1806 of file core_cm3.h.


Variable Documentation

volatile int ITM_RxBuffer

variable to receive characters