summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-24 15:15:33 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-24 15:15:33 +0000
commitb13492f8ad554935b9a33fb7c0560223134254df (patch)
treeac2ed3b4d1f84d8850f3a6c4039a42e22b7a4627 /stmhal/main.c
parent840efe06618ff7596e6fdfe237efd2b81400b53e (diff)
downloadmicropython-b13492f8ad554935b9a33fb7c0560223134254df.tar.gz
micropython-b13492f8ad554935b9a33fb7c0560223134254df.zip
stmhal: Add DAC driver.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 4aa668a13a..3f9683a542 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -37,6 +37,7 @@
#include "lcd.h"
#include "accel.h"
#include "servo.h"
+#include "dac.h"
#include "pin.h"
#if 0
#include "timer.h"
@@ -238,6 +239,11 @@ soft_reset:
#endif
#endif
+#if MICROPY_HW_ENABLE_DAC
+ // DAC
+ dac_init();
+#endif
+
pin_map_init();
// we pre-import the pyb module