![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Modules | |
BOARD: LPC1850 and LPC4350 Hitex EVA board builds options | |
LPC1850 and LPC4350 Hitex EVA board System Init code | |
Macros | |
#define | BOARD_HITEX_EVA_18504350 |
#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 | FRAMEBUFFER_ADDR 0x28000000 |
#define | BOARD_LCD EA320x240 |
Enumerations | |
enum | Board_Audio_Input_Sel_Type { MCB_18XX_AUDIO_MIC_SELECT = 1 << 2 | 1 << 3, MCB_18XX_AUDIO_LINE_IN_SELECT = 0x00, MCB_18XX_AUDIO_MIC_SELECT = 1 << 2 | 1 << 3, MCB_18XX_AUDIO_LINE_IN_SELECT = 0x00, MCB_18XX_AUDIO_MIC_SELECT = 1 << 2 | 1 << 3, MCB_18XX_AUDIO_LINE_IN_SELECT = 0x00 } |
Functions | |
void | Board_UART_Init (LPC_USART_Type *UARTx) |
Initialize pin muxing for a UART. | |
void | Board_Buttons_Init (void) |
Initialize button(s) interface on board. | |
uint32_t | Buttons_GetStatus (void) |
Returns button(s) state on board. | |
void | Board_Joystick_Init (void) |
Initialize joystick interface on board. | |
uint8_t | Joystick_GetStatus (void) |
Returns joystick states on board. | |
void | Board_ENET_GetMacADDR (uint8_t *mcaddr) |
Returns the MAC address assigned to this board. | |
void | Board_ADC_Init (void) |
Sets up board specific ADC interface. | |
void | Board_I2C_Init (LPC_I2C_Type *I2Cx) |
Sets up board specific I2C interface. | |
void | Board_LCD_Init (void) |
Initialize the LCD interface. | |
void | Init_Touch_Controller (void) |
Initialize TSC2046 touchscreen controller. | |
bool | GetTouchPos (int16_t *pX, int16_t *pY) |
Get Touch coordinates. | |
void | Board_SDMMC_Init (void) |
Initialize pin muxing for SDMMC interface. | |
void | Board_SSP_Init (LPC_SSP_Type *SSPx) |
Initialize pin muxing for SSP interface. | |
void | Board_Audio_Init (LPC_I2S_Type *I2Sx, Board_Audio_Input_Sel_Type audio_in_sel) |
Initialize I2S interface for the board and UDA1380. | |
void | Serial_CreateStream (void *Stream) |
FIXME. | |
Variables | |
const LCD_Config_Type | EA320x240 |
static const uint8_t | ledports [] = {4, 7, 7, 7} |
#define BOARD_HITEX_EVA_18504350 |
HITEX board defintion, can be used in examples for board specific code
Definition at line 83 of file board_hitex_eva_18504350.h.
#define BOARD_LCD EA320x240 |
Default LCD configuration data for examples
Definition at line 127 of file board_hitex_eva_18504350.h.
#define BUTTONS_BUTTON1 0x01 |
Definition at line 91 of file board_hitex_eva_18504350.h.
#define BUTTONS_BUTTON1_GPIO_BIT_NUM 21 |
Definition at line 100 of file board_hitex_eva_18504350.h.
#define BUTTONS_BUTTON1_GPIO_PORT_NUM 6 |
Definition at line 99 of file board_hitex_eva_18504350.h.
#define FRAMEBUFFER_ADDR 0x28000000 |
Default location of LCD buffer is in DRAM
Definition at line 117 of file board_hitex_eva_18504350.h.
#define I2CDEV_PCA9502_ADDR (0x9A >> 1) |
Definition at line 102 of file board_hitex_eva_18504350.h.
#define I2CDEV_UDA1380_ADDR (0x34 >> 1) |
Address of I2C device (UDA1380 CODEC) on board
Definition at line 112 of file board_hitex_eva_18504350.h.
#define JOY_DOWN 0x02 |
Definition at line 93 of file board_hitex_eva_18504350.h.
#define JOY_LEFT 0x04 |
Definition at line 94 of file board_hitex_eva_18504350.h.
#define JOY_PRESS 0x10 |
Definition at line 96 of file board_hitex_eva_18504350.h.
#define JOY_RIGHT 0x08 |
Definition at line 95 of file board_hitex_eva_18504350.h.
#define JOY_UP 0x01 |
Definition at line 92 of file board_hitex_eva_18504350.h.
#define LEDS_LED1 0x01 |
Definition at line 86 of file board_hitex_eva_18504350.h.
#define LEDS_LED2 0x02 |
Definition at line 87 of file board_hitex_eva_18504350.h.
#define LEDS_LED3 0x04 |
Definition at line 88 of file board_hitex_eva_18504350.h.
#define LEDS_LED4 0x08 |
Definition at line 89 of file board_hitex_eva_18504350.h.
#define LEDS_NO_LEDS 0x00 |
Definition at line 90 of file board_hitex_eva_18504350.h.
#define NO_BUTTON_PRESSED 0x00 |
Definition at line 97 of file board_hitex_eva_18504350.h.
#define PCA9502_REG_ADDR | ( | x | ) | (((x) & 0x0F) << 3) |
Definition at line 107 of file board_hitex_eva_18504350.h.
#define PCA9502_REG_IOCONTROL 0x0E |
Definition at line 106 of file board_hitex_eva_18504350.h.
#define PCA9502_REG_IODIR 0x0A |
Definition at line 103 of file board_hitex_eva_18504350.h.
#define PCA9502_REG_IOINTENA 0x0C |
Definition at line 105 of file board_hitex_eva_18504350.h.
#define PCA9502_REG_IOSTATE 0x0B |
Definition at line 104 of file board_hitex_eva_18504350.h.
CODEC audio input sources
MCB_18XX_AUDIO_MIC_SELECT | |
MCB_18XX_AUDIO_LINE_IN_SELECT | |
MCB_18XX_AUDIO_MIC_SELECT | |
MCB_18XX_AUDIO_LINE_IN_SELECT | |
MCB_18XX_AUDIO_MIC_SELECT | |
MCB_18XX_AUDIO_LINE_IN_SELECT |
Definition at line 132 of file board_hitex_eva_18504350.h.
void Board_ADC_Init | ( | void | ) |
Sets up board specific ADC interface.
Definition at line 658 of file board_hitex_eva_18504350.c.
void Board_Audio_Init | ( | LPC_I2S_Type * | I2Sx, |
Board_Audio_Input_Sel_Type | audio_in_sel | ||
) |
Initialize I2S interface for the board and UDA1380.
I2Sx | : Pointer to I2S register interface used on this board |
audio_in_sel | : Audio input selection |
Definition at line 863 of file board_hitex_eva_18504350.c.
void Board_Buttons_Init | ( | void | ) |
Initialize button(s) interface on board.
Definition at line 589 of file board_hitex_eva_18504350.c.
void Board_ENET_GetMacADDR | ( | uint8_t * | mcaddr | ) |
Returns the MAC address assigned to this board.
mcaddr | : Pointer to 6-byte character array to populate with MAC address |
Definition at line 629 of file board_hitex_eva_18504350.c.
void Board_I2C_Init | ( | LPC_I2C_Type * | I2Cx | ) |
Sets up board specific I2C interface.
I2Cx | : Pointer to I2C interface to initialize |
Definition at line 665 of file board_hitex_eva_18504350.c.
void Board_Joystick_Init | ( | void | ) |
Initialize joystick interface on board.
Definition at line 606 of file board_hitex_eva_18504350.c.
void Board_LCD_Init | ( | void | ) |
Initialize the LCD interface.
Definition at line 675 of file board_hitex_eva_18504350.c.
void Board_SDMMC_Init | ( | void | ) |
Initialize pin muxing for SDMMC interface.
Definition at line 810 of file board_hitex_eva_18504350.c.
void Board_SSP_Init | ( | LPC_SSP_Type * | SSPx | ) |
Initialize pin muxing for SSP interface.
SSPx | : Pointer to SSP interface to initialize |
Definition at line 825 of file board_hitex_eva_18504350.c.
void Board_UART_Init | ( | LPC_USART_Type * | UARTx | ) |
Initialize pin muxing for a UART.
UARTx | : Pointer to UART register block for UART pins to init |
Definition at line 478 of file board_hitex_eva_18504350.c.
uint32_t Buttons_GetStatus | ( | void | ) |
Returns button(s) state on board.
Definition at line 596 of file board_hitex_eva_18504350.c.
bool GetTouchPos | ( | int16_t * | pX, |
int16_t * | pY | ||
) |
Get Touch coordinates.
pX | : Pointer to x-Coord to populate |
pY | : Pointer to y-Coord to populate |
Definition at line 742 of file board_hitex_eva_18504350.c.
void Init_Touch_Controller | ( | void | ) |
Initialize TSC2046 touchscreen controller.
Definition at line 711 of file board_hitex_eva_18504350.c.
uint8_t Joystick_GetStatus | ( | void | ) |
Returns joystick states on board.
System Clock Frequency (Core Clock)
Definition at line 610 of file board_hitex_eva_18504350.c.
void Serial_CreateStream | ( | void * | Stream | ) |
FIXME.
Stream | : FIXME |
Definition at line 891 of file board_hitex_eva_18504350.c.
const LCD_Config_Type EA320x240 |
LCD configuration data
Definition at line 109 of file board_hitex_eva_18504350.c.
|
static |
Definition at line 48 of file board_hitex_eva_18504350.c.