aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/lm4f/systemcontrol.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc2013-01-01 17:21:58 -0600
committerAlexandru Gagniuc2013-01-09 00:39:20 -0600
commit7957cffaa3ab9f8f9e1a276ba3b9f01054758dfc (patch)
tree60c3062bf54d299237a3d3d0cd3208803b30e445 /include/libopencm3/lm4f/systemcontrol.h
parent03d04ad10a906539cc3d058a3000b2fb1504410b (diff)
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
Diffstat (limited to 'include/libopencm3/lm4f/systemcontrol.h')
-rw-r--r--include/libopencm3/lm4f/systemcontrol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libopencm3/lm4f/systemcontrol.h b/include/libopencm3/lm4f/systemcontrol.h
index a7e32c5..30fa1c9 100644
--- a/include/libopencm3/lm4f/systemcontrol.h
+++ b/include/libopencm3/lm4f/systemcontrol.h
@@ -370,9 +370,11 @@
/** Auto Clock Gating */
#define SYSCTL_RCC2_ACG (1 << 27)
/** System Clock Divisor 2 */
-#define SYSCTL_RCC2_SYSDIV2_MASK (0xF << 23)
+#define SYSCTL_RCC2_SYSDIV2_MASK (0x3F << 23)
/** Additional LSB for SYSDIV2 */
#define SYSCTL_RCC2_SYSDIV2LSB (1 << 22)
+/** System clock divisor mask when RCC2_DIV400 is set */
+#define SYSCTL_RCC2_SYSDIV400_MASK (0x7F << 22)
/** Power-Down USB PLL */
#define SYSCTL_RCC2_USBPWRDN (1 << 14)
/** PLL Power Down 2 */