diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-31 17:39:46 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-31 17:39:46 -0400 |
commit | 02d7b08f0497096f21e41922e0efb54c4ef33bab (patch) | |
tree | a7e04293efcba70f37cffcd03c0fcc4c0be7858a /libmaple/dac.c | |
parent | b2dd49c3141d8a21a4e7c7ef51dee7329f847c30 (diff) | |
parent | e03d58f4dab4176514924baa3a1ff430bf5819b8 (diff) | |
download | librambutan-02d7b08f0497096f21e41922e0efb54c4ef33bab.tar.gz librambutan-02d7b08f0497096f21e41922e0efb54c4ef33bab.zip |
Merge maple-native changes into portable
This compiles for both maple and maple_native but is untested.
Diffstat (limited to 'libmaple/dac.c')
-rw-r--r-- | libmaple/dac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/dac.c b/libmaple/dac.c index b9c7d63..ffc34f8 100644 --- a/libmaple/dac.c +++ b/libmaple/dac.c @@ -39,7 +39,7 @@ DAC_Map *dac = (DAC_Map*)(DAC_BASE); void dac_init(void) { // First turn on the clock - rcc_enable_clk_dac(); + rcc_clk_enable(RCC_DAC); // Then setup ANALOG mode on PA4 and PA5 gpio_set_mode(GPIOA_BASE, 4, CNF_INPUT_ANALOG); |