libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
libopencm3 LM4F Clock control API More...
Modules | |
Low-level clock control API | |
High-level clock control API | |
libopencm3 LM4F Clock control API
The LM4F clock API provides functionality for manipulating the system clock, oscillator, and PLL. Functions are provided for fine-grained control of clock control registers, while also providing higher level functionality to easily configure the main system clock source.
The following code snippet uses fine-grained mechanisms to configures the chip to run off an external 16MHz crystal, and use the PLL to derive a clock frequency of 80MHz.
The same can be achieved by a simple call to high-level routines: