Module stellaris_launchpad::board [] [src]

A board support library for the TI Stellaris Launchpad

Modules

gpio

Enums

Button

The Launchpad has two buttons

Led

The Launchpad has a tri-colour LED, which we consider to be three separate LEDs.

Constants

BUTTON_ONE

The pin used for Button One

BUTTON_TWO

The pin used for Button Two

LED_BLUE

The pin used for the Blue LED

LED_GREEN

The pin used for the Green LED

LED_RED

The pin used for the Red LED

Functions

init

Initialise everything on the board - FPU, PLL, SysTick, GPIO and the LEDs and buttons. Should be pretty much the first call you make in main(). Doesn't init the UART - that's separate.

led_off

Turn an LED off

led_on

Turn an LED on

panic

Call from a panic handler to flash the red LED quickly.

read_button

Get the state of a button