LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Macros | Functions | Variables
board.h File Reference
#include "chip.h"
#include "board_api.h"
#include "lpc_phy.h"
#include "uda1380.h"

Go to the source code of this file.

Macros

#define DEBUG_ENABLE
 
#define DEBUG_UART   LPC_USART0
 
#define BOARD_HITEX_EVA_4350
 
#define BOARD_ENET_PHY_ADDR   0x01
 
#define LEDS_LED1   0x01
 
#define LEDS_LED2   0x02
 
#define LEDS_LED3   0x04
 
#define LEDS_LED4   0x08
 
#define LEDS_NO_LEDS   0x00
 
#define BUTTONS_BUTTON1   0x01
 
#define JOY_UP   0x01
 
#define JOY_DOWN   0x02
 
#define JOY_LEFT   0x04
 
#define JOY_RIGHT   0x08
 
#define JOY_PRESS   0x10
 
#define NO_BUTTON_PRESSED   0x00
 
#define BUTTONS_BUTTON1_GPIO_PORT_NUM   6
 
#define BUTTONS_BUTTON1_GPIO_BIT_NUM   21
 
#define I2CDEV_PCA9502_ADDR   (0x9A >> 1)
 
#define PCA9502_REG_IODIR   0x0A
 
#define PCA9502_REG_IOSTATE   0x0B
 
#define PCA9502_REG_IOINTENA   0x0C
 
#define PCA9502_REG_IOCONTROL   0x0E
 
#define PCA9502_REG_ADDR(x)   (((x) & 0x0F) << 3)
 
#define I2CDEV_UDA1380_ADDR   (0x34 >> 1)
 
#define UDA1380_I2C_BUS   I2C0
 
#define FRAMEBUFFER_ADDR   0x28000000
 
#define BOARD_LCD   EA320x240
 

Functions

void Board_UART_Init (LPC_USART_T *pUART)
 Initialize pin muxing for a UART. More...
 
void Board_Buttons_Init (void)
 Initialize button(s) interface on board. More...
 
uint32_t Buttons_GetStatus (void)
 Returns button(s) state on board. More...
 
void Board_Joystick_Init (void)
 Initialize joystick interface on board. More...
 
uint8_t Joystick_GetStatus (void)
 Returns joystick states on board. More...
 
void Board_ENET_GetMacADDR (uint8_t *mcaddr)
 Returns the MAC address assigned to this board. More...
 
void Board_ADC_Init (void)
 Sets up board specific ADC interface. More...
 
void Board_I2C_Init (I2C_ID_T id)
 Sets up board specific I2C interface. More...
 
STATIC INLINE void Board_I2C_EnableFastPlus (I2C_ID_T id)
 Sets up I2C Fast Plus mode. More...
 
STATIC INLINE void Board_I2C_DisableFastPlus (I2C_ID_T id)
 Disable I2C Fast Plus mode and enables default mode. More...
 
void Board_LCD_Init (void)
 Initialize the LCD interface. More...
 
void Board_InitLCDController (void)
 Initialize the LCD controller on the QVGA (320x240) TFT LCD. More...
 
void Board_InitTouchController (void)
 Initialize touchscreen controller. More...
 
bool Board_GetTouchPos (int16_t *pX, int16_t *pY)
 Get Touch coordinates. More...
 
void Board_SetLCDBacklight (uint8_t Intensity)
 Set LCD Backlight. More...
 
void Board_SDMMC_Init (void)
 Initialize pin muxing for SDMMC interface. More...
 
void Board_SSP_Init (LPC_SSP_T *pSSP)
 Initialize pin muxing for SSP interface. More...
 
void Board_Audio_Init (LPC_I2S_T *pI2S, int micIn)
 Initialize I2S interface for the board and UDA1380. More...
 
void Board_DAC_Init (LPC_DAC_T *pDAC)
 Initialize DAC interface for the board. More...
 

Variables

const LCD_CONFIG_T EA320x240