Example of UART-DMA transfers taken form the npx cmsis driver libary

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

debug_frmwrk.c File Reference

debug_frmwrk.c File Reference

Contains some utilities that used for debugging through UART. More...

Go to the source code of this file.

Functions

void UARTPutChar (LPC_UART_TypeDef *UARTx, uint8_t ch)
 Puts a character to UART port.
uint8_t UARTGetChar (LPC_UART_TypeDef *UARTx)
 Get a character to UART port.
void UARTPuts (LPC_UART_TypeDef *UARTx, const void *str)
 Puts a string to UART port.
void UARTPuts_ (LPC_UART_TypeDef *UARTx, const void *str)
 Puts a string to UART port and print new line.
void UARTPutDec (LPC_UART_TypeDef *UARTx, uint8_t decnum)
 Puts a decimal number to UART port.
void UARTPutDec16 (LPC_UART_TypeDef *UARTx, uint16_t decnum)
 Puts a decimal number to UART port.
void UARTPutDec32 (LPC_UART_TypeDef *UARTx, uint32_t decnum)
 Puts a decimal number to UART port.
void UARTPutHex (LPC_UART_TypeDef *UARTx, uint8_t hexnum)
 Puts a hex number to UART port.
void UARTPutHex16 (LPC_UART_TypeDef *UARTx, uint16_t hexnum)
 Puts a hex number to UART port.
void UARTPutHex32 (LPC_UART_TypeDef *UARTx, uint32_t hexnum)
 Puts a hex number to UART port.
void debug_frmwrk_init (void)
 *********************************************************************//**

Detailed Description

Contains some utilities that used for debugging through UART.

Version:
2.0
Date:
21. May. 2010
Author:
NXP MCU SW Application Team ---------------------------------------------------------------------------- Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file debug_frmwrk.c.


Function Documentation

void debug_frmwrk_init ( void   )

*********************************************************************//**

Initialize Debug frame work through initializing UART port

Parameters:
[in]None
Returns:
None

Definition at line 247 of file debug_frmwrk.c.

uint8_t UARTGetChar ( LPC_UART_TypeDef *  UARTx )

Get a character to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
Returns:
character value that returned

Definition at line 65 of file debug_frmwrk.c.

void UARTPutChar ( LPC_UART_TypeDef *  UARTx,
uint8_t  ch 
)

Puts a character to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]chCharacter to put
Returns:
None

Definition at line 54 of file debug_frmwrk.c.

void UARTPutDec ( LPC_UART_TypeDef *  UARTx,
uint8_t  decnum 
)

Puts a decimal number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]decnumDecimal number (8-bit long)
Returns:
None

Definition at line 109 of file debug_frmwrk.c.

void UARTPutDec16 ( LPC_UART_TypeDef *  UARTx,
uint16_t  decnum 
)

Puts a decimal number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]decnumDecimal number (8-bit long)
Returns:
None

Definition at line 125 of file debug_frmwrk.c.

void UARTPutDec32 ( LPC_UART_TypeDef *  UARTx,
uint32_t  decnum 
)

Puts a decimal number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]decnumDecimal number (8-bit long)
Returns:
None

Definition at line 145 of file debug_frmwrk.c.

void UARTPutHex ( LPC_UART_TypeDef *  UARTx,
uint8_t  hexnum 
)

Puts a hex number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]hexnumHex number (8-bit long)
Returns:
None

Definition at line 175 of file debug_frmwrk.c.

void UARTPutHex16 ( LPC_UART_TypeDef *  UARTx,
uint16_t  hexnum 
)

Puts a hex number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]hexnumHex number (16-bit long)
Returns:
None

Definition at line 194 of file debug_frmwrk.c.

void UARTPutHex32 ( LPC_UART_TypeDef *  UARTx,
uint32_t  hexnum 
)

Puts a hex number to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]hexnumHex number (32-bit long)
Returns:
None

Definition at line 212 of file debug_frmwrk.c.

void UARTPuts ( LPC_UART_TypeDef *  UARTx,
const void *  str 
)

Puts a string to UART port.

Parameters:
[in]UARTxPointer to UART peripheral
[in]strstring to put
Returns:
None

Definition at line 79 of file debug_frmwrk.c.

void UARTPuts_ ( LPC_UART_TypeDef *  UARTx,
const void *  str 
)

Puts a string to UART port and print new line.

Parameters:
[in]UARTxPointer to UART peripheral
[in]strString to put
Returns:
None

Definition at line 96 of file debug_frmwrk.c.