- 10 Dec, 2018 17 commits
-
-
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.
-
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 2 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
-