RTEMS 6.1-rc2
|
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | DBG_Configure (uint32_t dwBaudrate, uint32_t dwMasterClock) |
Configures an USART peripheral with the specified parameters. | |
void | DBG_PutChar (uint8_t uc) |
Outputs a character on the UART line. | |
uint32_t | DBG_GetChar (void) |
Input a character from the UART line. | |
uint32_t | DBG_IsRxReady (void) |
Check if there is Input from UART line. | |
void | DBG_DumpFrame (uint8_t *pucFrame, uint32_t dwSize) |
void | DBG_DumpMemory (uint8_t *pucBuffer, uint32_t dwSize, uint32_t dwAddress) |
uint32_t | DBG_GetInteger (int32_t *pdwValue) |
uint32_t | DBG_GetIntegerMinMax (int32_t *pdwValue, int32_t dwMin, int32_t dwMax) |
uint32_t | DBG_GetHexa32 (uint32_t *pdwValue) |
Include function prototype for the UART console.
void DBG_Configure | ( | uint32_t | baudrate, |
uint32_t | masterClock | ||
) |
Configures an USART peripheral with the specified parameters.
baudrate | Baudrate at which the USART should operate (in Hz). |
masterClock | Frequency of the system master clock (in Hz). |
void DBG_DumpFrame | ( | uint8_t * | pucFrame, |
uint32_t | dwSize | ||
) |
Displays the content of the given frame on the UART0.
pucFrame | Pointer to the frame to dump. |
dwSize | Buffer size in bytes. |
void DBG_DumpMemory | ( | uint8_t * | pucBuffer, |
uint32_t | dwSize, | ||
uint32_t | dwAddress | ||
) |
Displays the content of the given buffer on the UART0.
pucBuffer | Pointer to the buffer to dump. |
dwSize | Buffer size in bytes. |
dwAddress | Start address to display |
uint32_t DBG_GetChar | ( | void | ) |
Input a character from the UART line.
uint32_t DBG_GetHexa32 | ( | uint32_t * | pdwValue | ) |
Reads an hexadecimal number
pdwValue | Pointer to the uint32_t variable to contain the input value. |
uint32_t DBG_GetInteger | ( | int32_t * | pdwValue | ) |
Reads an integer
pdwValue | Pointer to a integer variable to contain the input value. |
uint32_t DBG_GetIntegerMinMax | ( | int32_t * | pdwValue, |
int32_t | dwMin, | ||
int32_t | dwMax | ||
) |
Reads an integer and check the value
pdwValue | Pointer to a integer variable to contain the input value. |
dwMin | Minimum value |
dwMax | Maximum value |
uint32_t DBG_IsRxReady | ( | void | ) |
Check if there is Input from UART line.
void DBG_PutChar | ( | uint8_t | c | ) |
Outputs a character on the UART line.
c | Character to send. |