LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Macros | Typedefs | Functions
board_api.h File Reference
#include "lpc_types.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define DEBUGINIT()
 
#define DEBUGOUT(...)
 
#define DEBUGSTR(str)
 
#define DEBUGIN()   (int) EOF
 

Typedefs

typedef void(* p_msDelay_func_t )(uint32_t)
 Function prototype for a MS delay function. Board layers or example code may define this function as needed. More...
 

Functions

void Board_SystemInit (void)
 Setup and initialize hardware prior to call to main() More...
 
void Board_SetupMuxing (void)
 Setup pin multiplexer per board schematics. More...
 
void Board_SetupClocking (void)
 Setup system clocking. More...
 
void Board_SetupExtMemory (void)
 Setup external system memory. More...
 
void Board_Init (void)
 Set up and initialize all required blocks and functions related to the board hardware. More...
 
void Board_Debug_Init (void)
 Initializes board UART for output, required for printf redirection. More...
 
void Board_UARTPutChar (char ch)
 Sends a single character on the UART, required for printf redirection. More...
 
int Board_UARTGetChar (void)
 Get a single character from the UART, required for scanf input. More...
 
void Board_UARTPutSTR (const char *str)
 Prints a string to the UART. More...
 
void Board_LED_Set (uint8_t LEDNumber, bool State)
 Sets the state of a board LED to on or off. More...
 
bool Board_LED_Test (uint8_t LEDNumber)
 Returns the current state of a board LED. More...
 
void Board_LED_Toggle (uint8_t LEDNumber)
 Toggles the current state of a board LED. More...
 
void Board_SetLCDBacklight (uint8_t Intensity)
 Turn on Board LCD Backlight. More...