uc-sdk
|
Contains some utilities that used for debugging through UART. More...
#include "lpc17xx_uart.h"
Go to the source code of this file.
Macros | |
#define | USED_UART_DEBUG_PORT 0 |
#define | DEBUG_UART_PORT LPC_UART0 |
#define | _DBG(x) _db_msg(DEBUG_UART_PORT, x) |
#define | _DBG_(x) _db_msg_(DEBUG_UART_PORT, x) |
#define | _DBC(x) _db_char(DEBUG_UART_PORT, x) |
#define | _DBD(x) _db_dec(DEBUG_UART_PORT, x) |
#define | _DBD16(x) _db_dec_16(DEBUG_UART_PORT, x) |
#define | _DBD32(x) _db_dec_32(DEBUG_UART_PORT, x) |
#define | _DBH(x) _db_hex(DEBUG_UART_PORT, x) |
#define | _DBH16(x) _db_hex_16(DEBUG_UART_PORT, x) |
#define | _DBH32(x) _db_hex_32(DEBUG_UART_PORT, x) |
#define | _DG _db_get_char(DEBUG_UART_PORT) |
Functions | |
void | UARTPutChar (LPC_UART_TypeDef *UARTx, uint8_t ch) |
void | UARTPuts (LPC_UART_TypeDef *UARTx, const void *str) |
void | UARTPuts_ (LPC_UART_TypeDef *UARTx, const void *str) |
void | UARTPutDec (LPC_UART_TypeDef *UARTx, uint8_t decnum) |
void | UARTPutDec16 (LPC_UART_TypeDef *UARTx, uint16_t decnum) |
void | UARTPutDec32 (LPC_UART_TypeDef *UARTx, uint32_t decnum) |
void | UARTPutHex (LPC_UART_TypeDef *UARTx, uint8_t hexnum) |
void | UARTPutHex16 (LPC_UART_TypeDef *UARTx, uint16_t hexnum) |
void | UARTPutHex32 (LPC_UART_TypeDef *UARTx, uint32_t hexnum) |
uint8_t | UARTGetChar (LPC_UART_TypeDef *UARTx) |
void | debug_frmwrk_init (void) |
Variables | |
void(* | _db_msg )(LPC_UART_TypeDef *UARTx, const void *s) |
void(* | _db_msg_ )(LPC_UART_TypeDef *UARTx, const void *s) |
void(* | _db_char )(LPC_UART_TypeDef *UARTx, uint8_t ch) |
void(* | _db_dec )(LPC_UART_TypeDef *UARTx, uint8_t decn) |
void(* | _db_dec_16 )(LPC_UART_TypeDef *UARTx, uint16_t decn) |
void(* | _db_dec_32 )(LPC_UART_TypeDef *UARTx, uint32_t decn) |
void(* | _db_hex )(LPC_UART_TypeDef *UARTx, uint8_t hexn) |
void(* | _db_hex_16 )(LPC_UART_TypeDef *UARTx, uint16_t hexn) |
void(* | _db_hex_32 )(LPC_UART_TypeDef *UARTx, uint32_t hexn) |
uint8_t(* | _db_get_char )(LPC_UART_TypeDef *UARTx) |
Contains some utilities that used for debugging through UART.
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.h.
#define _DBC | ( | x) | _db_char(DEBUG_UART_PORT, x) |
Definition at line 36 of file debug_frmwrk.h.
#define _DBD | ( | x) | _db_dec(DEBUG_UART_PORT, x) |
Definition at line 37 of file debug_frmwrk.h.
#define _DBD16 | ( | x) | _db_dec_16(DEBUG_UART_PORT, x) |
Definition at line 38 of file debug_frmwrk.h.
#define _DBD32 | ( | x) | _db_dec_32(DEBUG_UART_PORT, x) |
Definition at line 39 of file debug_frmwrk.h.
#define _DBG | ( | x) | _db_msg(DEBUG_UART_PORT, x) |
Definition at line 34 of file debug_frmwrk.h.
#define _DBG_ | ( | x) | _db_msg_(DEBUG_UART_PORT, x) |
Definition at line 35 of file debug_frmwrk.h.
#define _DBH | ( | x) | _db_hex(DEBUG_UART_PORT, x) |
Definition at line 40 of file debug_frmwrk.h.
#define _DBH16 | ( | x) | _db_hex_16(DEBUG_UART_PORT, x) |
Definition at line 41 of file debug_frmwrk.h.
#define _DBH32 | ( | x) | _db_hex_32(DEBUG_UART_PORT, x) |
Definition at line 42 of file debug_frmwrk.h.
#define _DG _db_get_char(DEBUG_UART_PORT) |
Definition at line 43 of file debug_frmwrk.h.
#define DEBUG_UART_PORT LPC_UART0 |
Definition at line 29 of file debug_frmwrk.h.
#define USED_UART_DEBUG_PORT 0 |
Definition at line 26 of file debug_frmwrk.h.
void debug_frmwrk_init | ( | void | ) |
uint8_t UARTGetChar | ( | LPC_UART_TypeDef * | UARTx) |
void UARTPutChar | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | ch | ||
) |
void UARTPutDec | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | decnum | ||
) |
void UARTPutDec16 | ( | LPC_UART_TypeDef * | UARTx, |
uint16_t | decnum | ||
) |
void UARTPutDec32 | ( | LPC_UART_TypeDef * | UARTx, |
uint32_t | decnum | ||
) |
void UARTPutHex | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | hexnum | ||
) |
void UARTPutHex16 | ( | LPC_UART_TypeDef * | UARTx, |
uint16_t | hexnum | ||
) |
void UARTPutHex32 | ( | LPC_UART_TypeDef * | UARTx, |
uint32_t | hexnum | ||
) |
void UARTPuts | ( | LPC_UART_TypeDef * | UARTx, |
const void * | str | ||
) |
void UARTPuts_ | ( | LPC_UART_TypeDef * | UARTx, |
const void * | str | ||
) |
void(* _db_char)(LPC_UART_TypeDef *UARTx, uint8_t ch) |
void(* _db_dec)(LPC_UART_TypeDef *UARTx, uint8_t decn) |
void(* _db_dec_16)(LPC_UART_TypeDef *UARTx, uint16_t decn) |
void(* _db_dec_32)(LPC_UART_TypeDef *UARTx, uint32_t decn) |
uint8_t(* _db_get_char)(LPC_UART_TypeDef *UARTx) |
void(* _db_hex)(LPC_UART_TypeDef *UARTx, uint8_t hexn) |
void(* _db_hex_16)(LPC_UART_TypeDef *UARTx, uint16_t hexn) |
void(* _db_hex_32)(LPC_UART_TypeDef *UARTx, uint32_t hexn) |
void(* _db_msg)(LPC_UART_TypeDef *UARTx, const void *s) |
void(* _db_msg_)(LPC_UART_TypeDef *UARTx, const void *s) |