update header files

This commit is contained in:
hathach
2013-09-12 14:06:59 +07:00
parent dc6f6e3b3e
commit 0769643814
85 changed files with 1357 additions and 63348 deletions

View File

@@ -22,7 +22,7 @@
* warranty that such application will be suitable for the specified
* use without further testing or modification.
* Permission to use, copy, modify, and distribute this software and its
* documentation is hereby granted, under NXP Semiconductors<72>
* documentation is hereby granted, under NXP Semiconductors<72>
* relevant copyright in the software, without fee, provided that it
* is used in conjunction with NXP Semiconductors microcontrollers. This
* copyright, permission, and disclaimer notice must appear in all copies of
@@ -41,14 +41,28 @@
/* Includes ------------------------------------------------------------------- */
#include "lpc43xx_uart.h"
#define KEIL_BOARD 1
#define HITEX_BOARD 2
#ifndef PLATFORM
#define PLATFORM KEIL_BOARD
#endif
#if (PLATFORM == HITEX_BOARD)
#define USED_UART_DEBUG_PORT 0
#endif
#if (PLATFORM == KEIL_BOARD)
#define USED_UART_DEBUG_PORT 3
#endif
#define USED_UART_DEBUG_PORT 1
#if (USED_UART_DEBUG_PORT==0)
#define DEBUG_UART_PORT LPC_UART0
#define DEBUG_UART_PORT LPC_USART0
#elif (USED_UART_DEBUG_PORT==1)
#define DEBUG_UART_PORT LPC_UART1
#elif (USED_UART_DEBUG_PORT==3)
#define DEBUG_UART_PORT LPC_USART3
#endif
#define _DBG(x) _db_msg((LPC_USARTn_Type*)DEBUG_UART_PORT, x)