![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Modules | |
BOARD: LPC1830 and LPC4330 NGX Xplorer board builds options | |
LPC1830 and LPC4330 NGX Xplorer board System Init code | |
Functions | |
void | Board_I2C_Init (LPC_I2C_Type *I2Cx) |
Sets up board specific I2C interface. | |
void | Board_GPIO_Int_Init (void) |
Initializes board specific GPIO Interrupt. | |
void | Board_SSP_Init (LPC_SSP_Type *SSPx) |
Initialize pin muxing for SSP interface. | |
void | Board_ENET_GetMacADDR (uint8_t *mcaddr) |
Returns the MAC address assigned to this board. | |
void | Board_SDMMC_Init (void) |
Initialize pin muxing for SDMMC interface. | |
void | Board_Buttons_Init (void) |
Initialize button(s) interface on board. | |
void | Board_Joystick_Init (void) |
Initialize joystick interface on board. | |
uint8_t | Joystick_GetStatus (void) |
Returns joystick states on board. | |
uint32_t | Buttons_GetStatus (void) |
Returns button(s) state on board. | |
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. | |
void | Board_UART_Init (LPC_USART_Type *UARTx) |
Initialize pin muxing for a UART. | |
#define BOARD_NGX_XPLORER_18304330 |
Definition at line 77 of file board_ngx_xplorer_18304330.h.
#define BUTTONS_BUTTON1 0x01 |
Definition at line 106 of file board_ngx_xplorer_18304330.h.
#define BUTTONS_BUTTON1_GPIO_BIT_NUM 7 |
Definition at line 115 of file board_ngx_xplorer_18304330.h.
#define BUTTONS_BUTTON1_GPIO_PORT_NUM 0 |
Definition at line 114 of file board_ngx_xplorer_18304330.h.
#define I2CDEV_UDA1380_ADDR (0x34 >> 1) |
Definition at line 79 of file board_ngx_xplorer_18304330.h.
#define JOY_DOWN 0x02 |
Definition at line 108 of file board_ngx_xplorer_18304330.h.
#define JOY_LEFT 0x04 |
Definition at line 109 of file board_ngx_xplorer_18304330.h.
#define JOY_PRESS 0x10 |
Definition at line 111 of file board_ngx_xplorer_18304330.h.
#define JOY_RIGHT 0x08 |
Definition at line 110 of file board_ngx_xplorer_18304330.h.
#define JOY_UP 0x01 |
Definition at line 107 of file board_ngx_xplorer_18304330.h.
#define LED1_GPIO_BIT_NUM 11 |
Definition at line 117 of file board_ngx_xplorer_18304330.h.
#define LED1_GPIO_PORT_NUM 1 |
Definition at line 116 of file board_ngx_xplorer_18304330.h.
#define LED2_GPIO_BIT_NUM 12 |
Definition at line 119 of file board_ngx_xplorer_18304330.h.
#define LED2_GPIO_PORT_NUM 1 |
Definition at line 118 of file board_ngx_xplorer_18304330.h.
#define LEDS_LED1 0x01 |
Definition at line 101 of file board_ngx_xplorer_18304330.h.
#define LEDS_LED2 0x02 |
Definition at line 102 of file board_ngx_xplorer_18304330.h.
#define LEDS_LED3 0x04 |
Definition at line 103 of file board_ngx_xplorer_18304330.h.
#define LEDS_LED4 0x08 |
Definition at line 104 of file board_ngx_xplorer_18304330.h.
#define LEDS_NO_LEDS 0x00 |
Definition at line 105 of file board_ngx_xplorer_18304330.h.
#define NO_BUTTON_PRESSED 0x00 |
Definition at line 112 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_ADC_DEFAULT_VALUE 0x0001 /* Apply 0bB VGA Gain, enable DC Filter */ |
Definition at line 96 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_AGC_DEFAULT_VALUE 0x0000 |
Definition at line 97 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_ANAMIX_DEFAULT_VALUE 0x0000 |
Definition at line 85 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_DECVOL_DEFAULT_VALUE 0xE4E4 /* Decrease Volume -28dB */ |
Definition at line 94 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_EVALCLK_DEFAULT_VALUE (0xF << 8 | 0x3 << 4 | 1 << 1) |
Definition at line 81 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_HEADAMP_DEFAULT_VALUE ( 1 << 9 | 2) |
Definition at line 86 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_I2S_DEFAULT_VALUE 0x0000 |
Definition at line 82 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_L3_DEFAULT_VALUE 0x0000 |
Definition at line 98 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_MIXSDO_DEFAULT_VALUE 0x0000 |
Definition at line 92 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_MIXVOL_DEFAULT_VALUE 0x0000 |
Definition at line 89 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_MODEBBT_DEFAULT_VALUE 0x0000 |
Definition at line 90 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_MSTRMUTE_DEFAULT_VALUE (2 << 8 | 2) |
Definition at line 91 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_MSTRVOL_DEFAULT_VALUE 0x0000 |
Definition at line 88 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_PGA_DEFAULT_VALUE 0x0000 |
Definition at line 95 of file board_ngx_xplorer_18304330.h.
#define UDA1380_REG_PWRCTRL_DEFAULT_VALUE (1 << 15 | 1 << 13 | 1 << 10 | 1 << 8 | 1 << 6 | 1 << 4 | 0x0F) |
Definition at line 84 of file board_ngx_xplorer_18304330.h.
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 121 of file board_ngx_xplorer_18304330.h.
enum UDA1380_REG |
Definition at line 127 of file board_ngx_xplorer_18304330.h.
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 |
Sets up board specific I2S interface 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.
Initializes board specific buttons.
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_GPIO_Int_Init | ( | void | ) |
Initializes board specific GPIO Interrupt.
Definition at line 723 of file board_keil_mcb_18574357.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.
Initializes board specific joystick.
Definition at line 606 of file board_hitex_eva_18504350.c.
void Board_SDMMC_Init | ( | void | ) |
Initialize pin muxing for SDMMC interface.
Sets up board specific 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 |
Sets up board specific 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 37 of file board_ngx_xplorer_18304330.c.
uint32_t Buttons_GetStatus | ( | void | ) |
Returns button(s) state on board.
Definition at line 596 of file board_hitex_eva_18504350.c.
uint8_t Joystick_GetStatus | ( | void | ) |
Returns joystick states on board.
Initialize joystick interface on board.
Initialize joystick interface 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.