lm4f: Add API for controlling the system run clock sources

Add an abstraction layer to handle the clock control for the run time clock on
LM4F (RCC). Sleep and deep-sleep clock configuration is not handled.

Complete documentation for the clock control API is included in doxygen-style
comments, and is included in [doc].

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>

Conflicts:
	lib/lm4f/Makefile
This commit is contained in:
Alexandru Gagniuc
2013-01-01 17:21:58 -06:00
parent 03d04ad10a
commit 7957cffaa3
5 changed files with 624 additions and 4 deletions

View File

@@ -19,7 +19,6 @@
#include <libopencm3/lm4f/systemcontrol.h>
/**
* \brief Enable the clock source for the peripheral
*
@@ -38,4 +37,4 @@ void periph_clock_enable(clken_t periph)
void periph_clock_disable(clken_t periph)
{
MMIO32(SYSCTL_BASE + (periph >> 5)) &= ~(1 << (periph & 0x1f));
}
}