Wow, it's a bit nasty though - I didn't expect the contents TIMx->CCER to be affecting the mapping of pins :)
I've just fixed this - commit 499bba24b955e12807766e7846bcb0b2b1163aa6. Hopefully it'll improve matters a lot!
I think long-term I'll have to fix this more seriously with some code that properly understands that two peripherals can't be active on one pin at the same time (eg. USART1 and a timer on pin A9), or on different pins.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Aha, thanks...
Wow, it's a bit nasty though - I didn't expect the contents TIMx->CCER to be affecting the mapping of pins :)
I've just fixed this - commit 499bba24b955e12807766e7846bcb0b2b1163aa6. Hopefully it'll improve matters a lot!
I think long-term I'll have to fix this more seriously with some code that properly understands that two peripherals can't be active on one pin at the same time (eg. USART1 and a timer on pin A9), or on different pins.