circuitpython/ports
Damien George 011d1555cb stm32/rtc: Fix RTC init to use LSI if LSI is already selected on boot.
Upon boot the RTC early-init function should detect if LSE or LSI is
already selected/running and, if so, use it.  When the LSI has previously
(in the previous reset cycle) been selected as the clock source the only
way to reliably tell is if the RTCSEL bits of the RCC_BDCR are set to the
correct LSI value.  In particular the RCC_CSR bits for LSI control do not
indicate if the LSI is ready even if it is selected.

This patch removes the check on the RCC_CSR bits for the LSI being on and
ready and only uses the check on the RCC_BDCR to see if the LSI should be
used straightaway.  This was tested on a PYBLITEv1.0 and with the patch the
LSI persists correctly as the RTC source as long as the backup domain
remains powered.
2018-02-05 15:12:22 +11:00
..
bare-arm all: Remove inclusion of internal py header files. 2017-10-04 12:37:50 +11:00
cc3200 py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str. 2017-11-16 13:17:51 +11:00
esp32 esp32/machine_uart: Fix check of UART id so it only allows valid UARTs. 2018-01-31 19:38:32 +11:00
esp8266 esp8266/modules: Move dht.py driver to drivers/dht directory. 2018-01-31 18:11:06 +11:00
minimal minimal/README: Update text to better describe what "make run" does. 2018-01-31 21:05:21 +11:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm qemu-arm/test_main: Include setjmp.h because it's used by gc_collect. 2017-12-20 15:42:06 +11:00
stm32 stm32/rtc: Fix RTC init to use LSI if LSI is already selected on boot. 2018-02-05 15:12:22 +11:00
teensy teensy: Get port compiling without any warnings. 2017-11-01 11:00:30 +11:00
unix unix/mpconfigport_coverage.h: Enable MICROPY_PY_IO_RESOURCE_STREAM. 2017-12-19 17:04:55 +11:00
windows windows: Add Appveyor CI builds for windows mingw port 2018-01-31 16:09:15 +11:00
zephyr zephyr/main: Remove unused do_str() function. 2017-12-26 20:16:08 +02:00