aboutsummaryrefslogtreecommitdiffstats
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
commite7c9a9109815060175e73c06d4b34809ab033193 (patch)
tree72adfc60b4e3d5b947a6bc7035483f3c80bcd84c /libmaple/dac.c
parentcf1f0fa96a6218739520c16bf6cd2c3df6ef97dd (diff)
downloadlibrambutan-e7c9a9109815060175e73c06d4b34809ab033193.tar.gz
librambutan-e7c9a9109815060175e73c06d4b34809ab033193.zip
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 */