| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
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.

## Functions
void | Board_Init (void)
| Set up and initialize all required blocks and functions related to the board hardware.
void | Board_Debug_Init (void)
| Initializes board UART for output, required for printf redirection.
void | Board_UARTPutChar (char ch)
| Sends a single character on the UART, required for printf redirection.
int | Board_UARTGetChar (void)
| Get a single character from the UART, required for scanf input.
void | Board_UARTPutSTR (char *str)
| Prints a string to the UART.
void | Board_LED_Set (uint8_t LEDNumber, bool State)
| Sets the state of a board LED to on or off.
bool | Board_LED_Test (uint8_t LEDNumber)
| Returns the current state of a board LED.
STATIC INLINE void | Board_LED_Toggle (uint8_t LEDNumber)
| Toggles the current state of a board LED.
void | SystemCoreClockUpdate (void)
| Update system core clock rate, should be called if the system has a clock rate change.
void | Board_SetLCDBacklight (uint8_t Intensity)
| Turn on Board LCD Backlight.

## Variables
uint32_t | SystemCoreClock
| Current system clock rate, mainly used for sysTick.