NXP LPC LWIP port documentation  v0.80
LWIP port for LPC devices
Embedded Artists LPC1788 (EA1788) board
#define LED_GPIO_PORT_USED   (2)
 GPIO port used for LED control on the EA1788 board.
#define LED_GPIO_PIN_BIT   (1 << 26)
 GPIO bit used for LED control on the EA1788 board.
void led_set (s32_t state)
 Set the EA1788 module red LED to an on or off state.
void board_setup (void)
 Setup EA1788 board for LWIP examples.
void board_get_macaddr (u8_t *macaddr)
 Populates the MAC address for the board.

Function Documentation

void board_get_macaddr ( u8_t *  macaddr)

Populates the MAC address for the board.

This function sets the MAC address used for the EA1788 board. Although this can be replaced with something more capable, it simply uses a hard-coded MAC address for this example.

void board_setup ( void  )

Setup EA1788 board for LWIP examples.

This function sets up the LED and ethernet pin muxing for the LPC1788 as used on the EA1788 board.

void led_set ( s32_t  state)

Set the EA1788 module red LED to an on or off state.

This function sets the LED to an on or off state for the board. The red LED on the EA1788 CPU module is used.

Parameters:
[in]stateNew LED state, 0 = off, !0 = on