diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-11-18 17:24:14 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-11 16:56:51 -0400 |
commit | 5337e01c09e19573758efbc57a7f7e972d78ab3f (patch) | |
tree | d9f6a208684e1caa9007bae90a14c8a10a9eea6e /libmaple/rules.mk | |
parent | 748edc3887c714dcc92768556aac7ac563b6247e (diff) | |
download | librambutan-5337e01c09e19573758efbc57a7f7e972d78ab3f.tar.gz librambutan-5337e01c09e19573758efbc57a7f7e972d78ab3f.zip |
RCC: Break out some portable functionality from stm32f1/.
Portions of rcc_clk_enable(), rcc_reset_dev(), and rcc_set_prescaler()
are portable; break these into static inline helpers in
rcc_private.h. These guts of these are portable, but the arrays of
registers etc. are not.
Also add an extern declaration for rcc_dev_table into
rcc_private.h. This lets us put rcc_dev_clk() into a newly resurrected
libmaple/rcc.c, since that's portable.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/rules.mk')
-rw-r--r-- | libmaple/rules.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/rules.mk b/libmaple/rules.mk index cbff931..3ca5b3a 100644 --- a/libmaple/rules.mk +++ b/libmaple/rules.mk @@ -23,6 +23,7 @@ cSRCS_$(d) := adc.c \ nvic.c \ pwr.c \ i2c.c \ + rcc.c \ spi.c \ syscalls.c \ systick.c \ |