summaryrefslogtreecommitdiff
path: root/docs/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-09-13 16:20:42 +1000
committerDamien George <damien.p.george@gmail.com>2017-09-13 16:20:42 +1000
commitd7cd1d2027504278a58795eefab41c80ea14d5e9 (patch)
treeb56e5c85168a690990193e43dddea6a2cc899e58 /docs/esp8266
parentda8c4c2653b5121070f8c2872aead79d67d28441 (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')
0 files changed, 0 insertions, 0 deletions