aboutsummaryrefslogtreecommitdiff
path: root/libmaple/dac.c
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-03-21 03:58:55 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-03-21 14:42:46 -0400
commitc8c070905c2033db44b08f36a705d8e572841fe3 (patch)
tree6ae7603334fd6384e279ccbbc6d7c7dc300834cb /libmaple/dac.c
parent1ee7192493ead806adb7d4bdb3288d9feed06cce (diff)
RCC refactor.
Older refactor commit e4807a5010f59ab863ad2c96dc14caf65bf1ae60 used bit-banding in rcc_clk_init() to set RCC_CR_HSEON, which doesn't work for some reason. Not going to try to figure out why.
Diffstat (limited to 'libmaple/dac.c')
-rw-r--r--libmaple/dac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmaple/dac.c b/libmaple/dac.c
index ef3a9f9..0f44bb4 100644
--- a/libmaple/dac.c
+++ b/libmaple/dac.c
@@ -26,6 +26,8 @@
#include "gpio.h"
#include "dac.h"
+#ifdef STM32_HIGH_DENSITY
+
/**
* @brief DAC peripheral routines.
*/
@@ -108,3 +110,5 @@ void dac_disable_channel(uint8 channel) {
break;
}
}
+
+#endif /* STM32_HIGH_DENSITY */