LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Macros | Functions
board.h File Reference
#include "chip.h"
#include "board_api.h"

Go to the source code of this file.

Macros

#define DEBUG_ENABLE
 
#define DEBUG_UART   LPC_UART0
 
#define BOARD_NXP_LPCXPRESSO_1125
 
#define LED_RED   0x00
 
#define LED_GREEN   0x01
 
#define LED_BLUE   0x02
 
#define BUTTONS_BUTTON1   0x01 /* WAKE button */
 
#define BUTTONS_BUTTON2   0x02 /* ISP button */
 
#define NO_BUTTON_PRESSED   0x00
 

Functions

void Board_Buttons_Init (void)
 Initialize buttons on the board. More...
 
uint32_t Buttons_GetStatus (void)
 Get button status. More...
 

Macro Definition Documentation

#define BOARD_NXP_LPCXPRESSO_1125

Definition at line 77 of file board.h.

#define BUTTONS_BUTTON1   0x01 /* WAKE button */

BUTTON defines

Definition at line 89 of file board.h.

#define BUTTONS_BUTTON2   0x02 /* ISP button */

Definition at line 90 of file board.h.

#define LED_BLUE   0x02

Definition at line 84 of file board.h.

#define LED_GREEN   0x01

Definition at line 83 of file board.h.

#define LED_RED   0x00

LED defines

Definition at line 82 of file board.h.

#define NO_BUTTON_PRESSED   0x00

Definition at line 92 of file board.h.

Function Documentation

void Board_Buttons_Init ( void  )

Initialize buttons on the board.

Returns
Nothing

Definition at line 164 of file board.c.

uint32_t Buttons_GetStatus ( void  )

Get button status.

Returns
status of button

Definition at line 170 of file board.c.