micropython/ports
Krzysztof Adamski feb7e2e864 rp2/machine_rtc: In RTC.datetime, compute weekday automatically.
Calculating the weekday each time you want to set a date is error prone and
tiresome.  MicroPython can do it on its own - hardware on some ports do not
support storing weekday in hardware and always computes it on the fly,
ignoring the value given to the constructor.

During discussion for #7432 the conclusion was that there seems to be no
obvious reason to let user set the weekday to an incorrect value so it
makes sense to just ignore the provided weekday value and always compute
the correct value.  This patch introduces this change for the rp2 port.

Signed-off-by: Krzysztof Adamski <k@japko.eu>
2021-06-25 10:29:45 +10:00
..
bare-arm bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size. 2021-04-27 23:52:40 +10:00
cc3200 all: Rename mp_keyboard_interrupt to mp_sched_keyboard_interrupt. 2021-04-30 15:13:43 +10:00
esp32 esp32/main: Allow MICROPY_DIR to be overridden. 2021-06-24 16:03:25 +10:00
esp8266 esp32,esp8266: Add __len__ to NeoPixel driver to support iterating. 2021-06-22 16:33:55 +10:00
javascript all: Rename mp_keyboard_interrupt to mp_sched_keyboard_interrupt. 2021-04-30 15:13:43 +10:00
mimxrt mimxrt: Move calc_weekday helper function to timeutils. 2021-06-25 10:28:32 +10:00
minimal ports: Disable MICROPY_PY_ASSIGN_EXPR in bare-arm and minimal ports. 2020-06-16 22:06:21 +10:00
nrf py/mpstate: Make exceptions thread-local. 2021-06-19 09:43:44 +10:00
pic16bit py/mpstate: Schedule KeyboardInterrupt on main thread. 2021-06-19 09:49:00 +10:00
powerpc ports: Remove def of MP_PLAT_PRINT_STRN if it's the same as the default. 2021-02-04 22:39:17 +11:00
qemu-arm qemu-arm: Add support for Cortex-A9 via sabrelite board. 2021-05-26 16:24:00 +10:00
rp2 rp2/machine_rtc: In RTC.datetime, compute weekday automatically. 2021-06-25 10:29:45 +10:00
samd all: Rename mp_keyboard_interrupt to mp_sched_keyboard_interrupt. 2021-04-30 15:13:43 +10:00
stm32 stm32/usb: Make irq's default trigger enable all events. 2021-06-23 16:11:37 +10:00
teensy all: Replace busses with buses. 2021-05-20 23:22:03 +10:00
unix unix/modffi: Add option to lock GC in callback, and cfun access. 2021-06-24 23:12:26 +10:00
windows py/mpstate: Schedule KeyboardInterrupt on main thread. 2021-06-19 09:49:00 +10:00
zephyr zephyr/boards: Enable ubluetooth on nucleo_wb55rg board. 2021-06-06 21:57:44 +10:00