circuitpython/ports
Damien George d7cd1d2027 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.
2017-09-13 16:20:42 +10:00
..
bare-arm all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
cc3200 py/builtinhelp: Change signature of help text var from pointer to array. 2017-09-12 16:03:52 +10:00
esp8266 py/builtinhelp: Change signature of help text var from pointer to array. 2017-09-12 16:03:52 +10:00
minimal all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm tests/class_reverse_op: Test for reverse arith ops special methods. 2017-09-10 17:05:57 +03:00
stm32 stm32/timer: Make pyb.Timer() instances persistent. 2017-09-13 16:20:42 +10:00
teensy py/builtinhelp: Change signature of help text var from pointer to array. 2017-09-12 16:03:52 +10:00
unix py/runtime: Implement dispatch for "reverse op" special methods. 2017-09-10 17:05:57 +03:00
windows all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
zephyr py/builtinhelp: Change signature of help text var from pointer to array. 2017-09-12 16:03:52 +10:00