- 29 Dec, 2018 6 commits
-
-
Damien George authored
-
Damien George authored
On MCUs other than F4 the ORE (overrun error) flag needs to be cleared independently of clearing RXNE, even though both are wired to trigger the same RXNE IRQ. In the case that an overrun occurred it's necessary to explicitly clear the ORE flag or else the RXNE interrupt will keep firing.
-
Damien George authored
Otherwise IRQs may not be enabled for the user UART.irq() handler. In particular this fixes the user IRQ_RXIDLE interrupt so that it triggers even when there is no RX buffer.
-
Damien George authored
-
Tobias Badertscher authored
-
Tobias Badertscher authored
Initial implementation of this is taken from the cc3200 port.
-
- 27 Dec, 2018 1 commit
-
-
Damien George authored
This mirrors what is done in mp_init. Some RTOSs require this symmetry to get back to a clean state (when doing a soft reset, for example).
-
- 21 Dec, 2018 2 commits
-
-
Damien George authored
It's more robust to have the version defined statically in a header file, rather than dynamically generating it via git using a git tag. In case git doesn't exist, or a different source control tool is used, it's important to still have the uPy version number available.
-
Andrew Leech authored
The new option MICROPY_HW_SDCARD_MOUNT_AT_BOOT can now be defined to 0 in mpconfigboard.h to allow SD hardware to be enabled but not auto-mounted at boot. This feature is enabled by default to retain previous behaviour. Previously, if an SD card is enabled in hardware it is also used to boot from. While this can be disabled with a SKIPSD file on internal flash, this wont be available at first boot or if the internal flash gets corrupted.
-
- 20 Dec, 2018 2 commits
-
-
Paul Sokolovsky authored
The older "bool has_finaliser" gets recast as GC_ALLOC_FLAG_HAS_FINALISER=1 so this is a backwards compatible change to the signature. Since bool gets implicitly converted to 1 this patch doesn't include conversion of all calls.
-
Paul Sokolovsky authored
Both mp_type_array and mp_type_memoryview use the same object structure, mp_obj_array_t, but for the case of memoryview, some fields, e.g. "free", have different meaning. As the "free" field is also a bitfield, assume that (anonymous) union can't be used here (for the concerns of possible compatibility issues with wide array of toolchains), and just add a field alias using a #define. As it's a define, it should be a selective identifier, so use verbose "memview_offset" to avoid any clashes.
-
- 15 Dec, 2018 3 commits
-
-
Dave Hylands authored
If you happen to only have a really simple frozen file that doesn't contain any new qstrs then the generated frozen_mpy.c file contains an empty enumeration which causes a C compile time error.
-
Damien George authored
-
Damien George authored
GNU readline support for the unix port was removed in acaa30b6 and in 5e83a75c, so it's also no longer supported in the windows port.
-
- 13 Dec, 2018 2 commits
-
-
Damien George authored
-
Damien George authored
To support deplop-openocd on target boards that use TEXT0_ADDR only and have their firmware in a single binary image.
-
- 12 Dec, 2018 9 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Following an equivalent fix to py/bc.c. The reason the incorrect values for the opcode constants were not previously causing a bug is because they were never being used: these opcodes always have qstr arguments so the part of the code that was comparing them would never be reached. Thanks to @malinah for finding the problem and providing the initial patch.
-
Damien George authored
All 4 opcodes that can have caching bytes also have qstrs, so the test for them must go in the qstr part of the code. The reason this incorrect calculation of the opcode size did not lead to a bug is because the caching byte is at the end of the opcode (byte, qstr, qstr, cache) and is always 0x00 when saving/loading, so was just treated as a single byte no-op opcode. Hence these opcodes were being saved/loaded/decoded correctly. Thanks to @malinah for finding the problem and providing the initial patch.
-
Paul Sokolovsky authored
On by default, turned off for minimal/bare-arm. Saves 144 bytes on x86.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 10 Dec, 2018 15 commits
-
-
Glenn Ruben Bakke authored
Due to new webpages at nordicsemi.com, the download links for Bluetooth LE stacks were broken. This patch updates the links to new locations for the current targets.
-
Damien George authored
The docs are now built as one for all ports.
-
Damien George authored
-
Damien George authored
A static UART is useful for internal peripherals that require a UART and need to persist outside the soft-reset loop.
-
Damien George authored
-
Damien George authored
To provide a cleaner and more abstract C-level interface to the UART.
-
Damien George authored
The HAL just clears UE and then clears all the UART control registers.
-
Damien George authored
This UART_HandleTypeDef is quite large (around 70 bytes in RAM needed for each UART object) and is not needed: instead the state of the peripheral held in its registers provides all the required information.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
mp_obj_new_exception_msg() assumes that the message passed to it is in ROM and so can use its data directly to create the string object for the argument of the exception, saving RAM. At the same time, this approach also makes sure that there is no attempt to format the message with printf, which could lead to faults if the message contained % characters. Fixes issue #3004.
-
Damien George authored
-
Paul Sokolovsky authored
SHORT, INT, LONG, LONGLONG, and unsigned (U*) variants are being defined. This is done at compile using GCC-style predefined macros like __SIZEOF_INT__. If the compiler doesn't have such defines, no such types will be defined.
-