- 23 Sep, 2016 2 commits
-
-
Damien George authored
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has been added in adaf0d86.
-
Damien George authored
qstrs ids are restricted to fit within 2 bytes already (eg in persistent bytecode) so it's safe to use a uint16_t to store them in mp_arg_t. And the flags member only needs a maximum of 2 bytes so can also use uint16_t. Savings in code size can be significant when many mp_arg_t structs are used for argument parsing. Eg, this patch reduces stmhal by 480 bytes.
-
- 22 Sep, 2016 8 commits
-
-
Paul Sokolovsky authored
In CPython, module-level .wrap_socket() function actually doesn't accept (or document) this param, only SSLContext.wrap_socket() has.
-
Radomir Dopieralski authored
When the clock is too fast for the i2c slave, it can temporarily hold down the scl line to signal to the master that it needs to wait. The master should check the scl line when it is releasing it after transmitting data, and wait for it to be released. This change has been tested with a logic analyzer and an i2c slace implemented on an atmega328p using its twi peripheral, clocked at 8Mhz. Without the change, the i2c communication works up to aboy 150kHz frequency, and above that results in the slave stuck in an unresponsive state. With this change, communication has been tested to work up to 400kHz.
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
vstr_extend will now only return NULL if the vstr is a fixed buffer, which in this case it is not.
-
Damien George authored
The issue-stats service is not well maintained and likely the situation won't improve in the future. See: https://github.com/hstove/issue_stats/issues/41 https://github.com/hstove/issue_stats/issues/46
-
- 21 Sep, 2016 7 commits
-
-
Paul Sokolovsky authored
This is required to use mbedTLS versions from various sources, e.g. mainline vs embedded into Zephyr RTOS.
-
Paul Sokolovsky authored
Unlike standard keyfile= and certfile=, these accept byte buffer objects (to not depend on FS implementation).
-
Pavol Rusnak authored
-
Stefan Agner authored
Use mp_obj_int_get_truncated to allow the full 32-bit address range as first parameter.
-
Paul Sokolovsky authored
-
Damien George authored
One can instead lookup __name__ in the modules dict to get the value.
-
Stefan Agner authored
Use MP_NOINLINE macro to avoid inlining of init_flash_fs. This helps to keep stack usage of main() low.
-
- 20 Sep, 2016 7 commits
-
-
Paul Sokolovsky authored
-
Delio Brignoli authored
-
Damien George authored
So now ticks_ms can count up to the full 30 bits. Fixes issue #2412.
-
Damien George authored
-
Damien George authored
With mpy-cross built, tests can now be run by first compiling them to .mpy files, and then executing the .mpy file. Usage: ./run-tests --via-mpy
-
Damien George authored
The showbc function now no longer uses the system printf so works correctly.
-
Damien George authored
The system printf is no longer used by the core uPy code. Instead, the platform print stream or DEBUG_printf is used. Using DEBUG_printf in the showbc functions would mean that the code can't be tested by the test suite, so use the normal output instead. This patch also fixes parsing of bytecode-line-number mappings.
-
- 19 Sep, 2016 8 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
qstrs are always null terminated so qstr_str will stay as part of the API.
-
Damien George authored
UART1 can be used even if the switch is enabled. The schematics for this board make I2C1 available on PB8/PB9, even though it can also be mapped to PB6/PB7. See #2396 and #2427.
-
Damien George authored
-
Damien George authored
The vstr.had_error flag was a relic from the very early days which assumed that the malloc functions (eg m_new, m_renew) returned NULL if they failed to allocate. But that's no longer the case: these functions will raise an exception if they fail. Since it was impossible for had_error to be set, this patch introduces no change in behaviour. An alternative option would be to change the malloc calls to the _maybe variants, which return NULL instead of raising, but then a lot of code will need to explicitly check if the vstr had an error and raise if it did. The code-size savings for this patch are, in bytes: bare-arm:188, minimal:456, unix(NDEBUG,x86-64):368, stmhal:228, esp8266:360.
-
Damien George authored
With the previous patch combining 3 emit functions into 1, it now makes sense to also combine the corresponding VM opcodes, which is what this patch does. This eliminates 2 opcodes which simplifies the VM and reduces code size, in bytes: bare-arm:44, minimal:64, unix(NDEBUG,x86-64):272, stmhal:92, esp8266:200. Profiling (with a simple script that creates many list/dict/set comprehensions) shows no measurable change in performance.
-
Damien George authored
The 3 kinds of comprehensions are similar enough that merging their emit functions reduces code size. Decreases in code size in bytes are: bare-arm:24, minimal:96, unix(NDEBUG,x86-64):328, stmhal:80, esp8266:76.
-
- 18 Sep, 2016 5 commits
-
-
Paul Sokolovsky authored
Instead of busy-looping waiting for UART input. Not enabled by default, needs more testing.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Based on https://github.com/micropython/micropython/pull/2210 .
-
juhasch authored
-
Paul Sokolovsky authored
-
- 17 Sep, 2016 3 commits
-
-
Dave Hylands authored
-
Paul Sokolovsky authored
A port now just needs to define FROZEN_DIR var and add $(BUILD)/frozen.c to SRC_C to support frozen modules.
-
Paul Sokolovsky authored
With FROZEN_MPY_DIR.
-