Files
libopencm3-examples/examples/lm4f/stellaris-ek-lm4f120xl/miniblink
Alexandru Gagniuc adddf9e418 lm4f: Update examples to the new GPIO API
We updated the GPIO API to use the AHB bus; however the AHP aperture for
GPIO ports A through J needs to be explicitly enabled at runtime. Accessing
the AHB aperture otherwise hardfaults.

To make the examples work again, we call gpio_enable_ahb_aperture() at the
start of main().

Since we're at it, we also take out the ugly register accesses in favor
of the new gpio functions.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-06 11:26:59 -05:00
..
2013-04-19 17:19:32 -07:00
2013-04-19 17:19:32 -07:00

------------------------------------------------------------------------------
README
------------------------------------------------------------------------------

This example demonstrates the following:
 * Configuriong GPIO pins
 * Toggling GPIO pins
 * Setting up and using GPIO interrupts
 * Unlocking protected GPIO pins
 * Controlling the system clock
 * Changing the system clock on the fly

Flashes the Red, Green and Blue diodes on the board, in order. The system clock
starts at 80MHz.
Pressing SW2 toggles the system clock between 80MHz, 57MHz, 40MHz ,20MHz, and
16MHz by changing the PLL divisor.
Pressing SW1 bypasses the PLL completely, and runs off the raw 16MHz clock
provided by the external crystal oscillator.
The LEDs will toggle at different speeds, depending on the system clock. The
system clock changes are handled within the interrupt service routine.