MG32F10x Standard Peripherals Firmware Library
宏定义 | 函数 | 变量

Functions that access the ITM debug interface. 更多...

宏定义

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)
 

函数

__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 更多...
 

变量

volatile int32_t ITM_RxBuffer
 

详细描述

Functions that access the ITM debug interface.

宏定义说明

◆ ITM_RXBUFFER_EMPTY

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)

Value identifying ITM_RxBuffer is ready for next character.

函数说明

◆ ITM_CheckChar()

__STATIC_INLINE int32_t ITM_CheckChar ( void  )

ITM Check Character

Checks whether a character is pending for reading in the variable ITM_RxBuffer.

返回
0 No character available.
1 Character available.

◆ ITM_ReceiveChar()

__STATIC_INLINE int32_t ITM_ReceiveChar ( void  )

ITM Receive Character

Inputs a character via the external variable ITM_RxBuffer.

返回
Received character.
-1 No character pending.

◆ ITM_SendChar()

__STATIC_INLINE uint32_t ITM_SendChar ( uint32_t  ch)

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.
    参数
    [in]chCharacter to transmit.
    返回
    Character to transmit.

变量说明

◆ ITM_RxBuffer

volatile int32_t ITM_RxBuffer

External variable to receive characters.