summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-07-21 23:37:45 +0100
committerDamien George <damien.p.george@gmail.com>2015-07-21 23:39:49 +0100
commitabc24c187614e358faa10ed6a3e239151f70b9f8 (patch)
treeed64fc0a71077f8d6de04c4eee4544aaa57c1699 /stmhal/timer.h
parent6f5e0fe9555c935fa0bca81f56d0bfa2993636a2 (diff)
downloadmicropython-abc24c187614e358faa10ed6a3e239151f70b9f8.tar.gz
micropython-abc24c187614e358faa10ed6a3e239151f70b9f8.zip
stmhal: Allow DAC.write_timed to take Timer object in place of freq.
This allows the DAC to use a user-specified Timer for the triggering (instead of the default Timer(6)), while still supporting original behaviour. Addresses issues #1129 and #1388.
Diffstat (limited to 'stmhal/timer.h')
-rw-r--r--stmhal/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/timer.h b/stmhal/timer.h
index 2a892db285..879d7ae5d7 100644
--- a/stmhal/timer.h
+++ b/stmhal/timer.h
@@ -43,3 +43,5 @@ void timer_tim6_init(uint freq);
void timer_deinit(void);
void timer_irq_handler(uint tim_id);
+
+TIM_HandleTypeDef *pyb_timer_get_handle(mp_obj_t timer);