diff options
author | Damien George <damien.p.george@gmail.com> | 2017-09-13 16:20:42 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-09-13 16:20:42 +1000 |
commit | d7cd1d2027504278a58795eefab41c80ea14d5e9 (patch) | |
tree | b56e5c85168a690990193e43dddea6a2cc899e58 /docs/esp8266/tutorial/powerctrl.rst | |
parent | da8c4c2653b5121070f8c2872aead79d67d28441 (diff) |
stm32/timer: Make pyb.Timer() instances persistent.
Prior to this patch calling pyb.Timer(id) would always create a new timer
instance, even if there was an existing one. This patch fixes this
behaviour to match other peripherals, like UART, such that constructing a
timer with just the id will retrieve any existing instances.
The patch also refactors the way timers are validated on construction to
simplify and reduce code size.
Diffstat (limited to 'docs/esp8266/tutorial/powerctrl.rst')
0 files changed, 0 insertions, 0 deletions