- 10 Dec, 2018 10 commits
-
-
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.
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Allows to get address a pointer contains, as an integer.
-
- 07 Dec, 2018 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Based on the discussion, this special method is available unconditionally, as converting to int is a common operation.
-
- 06 Dec, 2018 8 commits
-
-
Damien George authored
Instead of assuming that the method is a bytecode object, and only supporting load of __name__, make the operation generic by delegating the load to the method object itself. Saves a bit of code size and fixes the case of attempting to load __name__ on a native method, see issue #4028.
-
Damien George authored
-
Damien George authored
Fixes issue #4273.
-
Damien George authored
-
Damien George authored
The uart_write_bytes_with_break() function requires non-zero data to be sent before the break, so a standalone break must be synthesised.
-
boochow authored
-
boochow authored
The L432 does not have: GPIOD, TIM3, SPI2, ADC dual mode operation, 2-banks flash.
-
boochow authored
The pin alternate function information is derived from ST's datasheet https://www.st.com/resource/en/datasheet/stm32l432kc.pdf In the datasheet, the line 2 of AF4 includes I2C2 but actually the chip does not have I2C2 so it is removed.
-
- 05 Dec, 2018 3 commits
-
-
Damien George authored
As per the machine.UART documentation, this is used to set the length of the UART RX buffer.
-
Damien George authored
As per the machine.UART documentation, these are used to set the length of the TX and RX buffers.
-
Damien George authored
As per the machine.UART documentation, this is used to set the length of the RX buffer. The legacy read_buf_len argument is retained for backwards compatibility, with rxbuf overriding it if provided.
-
- 04 Dec, 2018 8 commits
-
-
Damien George authored
This maps to machine.deepsleep() which is now supported.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Also change the order of printing of flow so it is after stop (so bits, parity, stop are one after the other), and reduce code size by using mp_print_str instead of mp_printf where possible. See issue #1981.
-
Damien George authored
-
Ayke van Laethem authored
A new option MICROPY_GC_STACK_ENTRY_TYPE is added to select a custom type instead of size_t for the gc_stack array items. This can be beneficial for small devices, especially those that are low on memory anyway. If a device has 1MB or less of heap (and 16-byte GC blocks) then this type can be uint16_t, saving 128 bytes of RAM.
-
- 03 Dec, 2018 3 commits
-
-
Damien George authored
If the STA interface is connected to an AP then it must be fully disconnected and deactivated before forcing the power management on.
-
Craig Younkins authored
-
Damien George authored
The recent implementation of the listen backlog meant that the logic to test for readability of such a socket changed, and this commit updates the logic to work again.
-
- 01 Dec, 2018 4 commits
-
-
roland authored
The board(s) feature a VCOM through the ST-LINK, this feature is something to keep around.
-
Damien George authored
Array to hold waiting connections is in-place if backlog=1, else is a dynamically allocated array. Incoming connections are processed FIFO style to maintain fairness.
-
Damien George authored
Reduces current of device by about 55mA when radio is sleeping.
-
Damien George authored
-
- 28 Nov, 2018 2 commits
-
-
Damien George authored
This is necessary for two reasons: 1) FreeRTOS still needs the TCB data structure even after vPortCleanUpTCB has been called, so this latter hook function cannot free the TCB, and there is no where else to safely delete it (this behaviour has changed recently in the ESP IDF); 2) when using external SPI RAM the uPy heap is in this external memory but the task stack must be allocated from internal SRAM. Fixes issue #3904.
-
Damien George authored
vTaskDelete now immediately calls vPortCleanUpTCB, which requires the thread_mutex mutex, so vTaskDelete must be called after this mutex is released.
-