Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-28 | cc3200: Enable UART REPL by default. | Paul Sokolovsky | |
To allow access and testing without complex access methods like WiFi. Enabled for both WiPy and TI LaunchXL. | |||
2016-12-28 | py/unicode: Comment-out unused function unichar_isprint. | Damien George | |
2016-12-28 | tests/micropython: Add test for micropython.stack_use() function. | Rami Ali | |
2016-12-28 | stmhal/uart: Increase inter-character timeout by 1ms. | Damien George | |
Sys-tick resolution is 1ms and a value of 2 will give a delay between 1ms and 2ms (whereas a value of 1 gives a delay between 0ms and 1ms, which is too short). | |||
2016-12-28 | stmhal/uart: Provide a custom function to transmit over UART. | Damien George | |
The HAL_UART_Transmit function has changed in the latest HAL version such that the Timeout is a timeout for the entire function, rather than a timeout between characters as it was before. The HAL function also does not allow one to reliably tell how many characters were sent before the timeout (if a timeout occurred). This patch provides a custom function to do UART transmission, completely replacing the HAL version, to fix the above-mentioned issues. | |||
2016-12-28 | tests/basics: Add tests to improve coverage of binary.c. | Rami Ali | |
2016-12-28 | py/objint: Simplify mp_int_format_size and remove unreachable code. | Damien George | |
One never needs to format integers with a base larger than 16 (but code can be easily extended beyond this value if needed in the future). | |||
2016-12-28 | py/mpprint: Add assertion for, and comment about, valid base values. | Damien George | |
2016-12-28 | py/parsenum: Fix warning for signed/unsigned comparison. | Damien George | |
2016-12-28 | tests/basics: Add tests for parsing of ints with base 36. | Damien George | |
2016-12-28 | py/mpz: Fix assertion in mpz_set_from_str which checks value of base. | Damien George | |
2016-12-28 | py/parsenum: Simplify and generalise decoding of digit values. | Damien George | |
This function should be able to parse integers with any value for the base, because it is called by int('xxx', base). | |||
2016-12-27 | cc3200: Re-add support for UART REPL (MICROPY_STDIO_UART setting). | Paul Sokolovsky | |
UART REPL support was lost in os.dupterm() refactorings, etc. As os.dupterm() is there, implement UART REPL support at the high level - if MICROPY_STDIO_UART is set, make default boot.py contain os.dupterm() call for a UART. This means that changing MICROPY_STDIO_UART value will also require erasing flash on a module to force boot.py re-creation. | |||
2016-12-27 | py/misc.h: Typo fix in comment. | Paul Sokolovsky | |
2016-12-25 | tests/heapalloc_inst_call: Test for no alloc for simple object calls. | Paul Sokolovsky | |
2016-12-24 | tests/utimeq_stable: Test for partial stability of utimeq queuing. | Paul Sokolovsky | |
2016-12-24 | extmod/modutimeq: Make time_less_than be actually "less than", not less/eq. | Paul Sokolovsky | |
This fixes an obvious case of non-fair scheduling of 2 tasks with the same deadline. | |||
2016-12-23 | extmod/modutimeq: Fix printf in dump(). | Paul Sokolovsky | |
2016-12-23 | examples/hwapi/hwconfig_console: Don't alloc memory in value(). | Paul Sokolovsky | |
2016-12-23 | stmhal, esp8266: Enable utimeq module. | Paul Sokolovsky | |
2016-12-22 | stmhal: Add support for STM32 Nucleo64 L476RG. | sergiuszm | |
2016-12-22 | stmhal/sdcard: Use mp_hal_pin_config function instead of HAL_GPIO_Init. | Damien George | |
There is a minor functional change with this patch, that the GPIO are now configured in fast mode, whereas they were in high speed mode before. But the SDIO should still work because SD CK frequency is at most 25MHz. | |||
2016-12-22 | stmhal/led: Use mp_hal_pin_config function instead of HAL_GPIO_Init. | Damien George | |
2016-12-22 | stmhal/usrsw: Use mp_hal_pin_config function instead of HAL_GPIO_Init. | Damien George | |
2016-12-22 | stmhal/mphalport.h: Explicitly use HAL's GPIO constants for pull modes. | Damien George | |
They are the same as the existing raw constants (namely 0, 1, 2) but we want to explicitly show that one can use the HAL's constants if necessary (eg the mpconfigboard.h files do use the HAL's constants to define the pull state of certain configurable pins). | |||
2016-12-22 | stmhal/led: Properly initialise timer handle to zero before using it. | Damien George | |
Without this the timer will have random values for its State and Lock entries. The object can then be in a locked state leading to some HAL functions returning immediately with an error code (which is unchecked). This patch fixes such a bug which did manifest itself as PWM not working correctly for LEDs. | |||
2016-12-22 | extmod/moduheapq: Revert change for adhoc relative-time queue support. | Paul Sokolovsky | |
Now that specialized utimeq module has been implenented, revert previous adhoc changes to uheapq. This reverts commit 0cbc07227c4ab70c846f40a1e2a5fd57dec30428. | |||
2016-12-22 | unix/Makefile: Make "coverage_test" target mirror Travis test actions. | Damien George | |
2016-12-22 | travis: Include persistent bytecode with floats in coverage tests. | Damien George | |
2016-12-22 | tests: Add a coverage test for printing the parse-tree. | Damien George | |
2016-12-22 | unix/main: Allow to print the parse tree in coverage build. | Damien George | |
Passing -v -v -v on the command line of the coverage build will now print the parse tree (as well as other things at this verbosity level). | |||
2016-12-22 | py/lexer: Permanently disable the mp_lexer_show_token function. | Damien George | |
The lexer is very mature and this debug function is no longer used. If it's really needed one can uncomment it and recompile. | |||
2016-12-22 | py/lexer: Remove unnecessary check for EOF in lexer's next_char func. | Damien George | |
This check always fails (ie chr0 is never EOF) because the callers of this function never call it past the end of the input stream. And even if they did it would be harmless because 1) reader.readbyte must continue to return an EOF char if the stream is exhausted; 2) next_char would just count the subsequent EOF's as characters worth 1 column. | |||
2016-12-22 | py/lexer: Remove unreachable code in string tokeniser. | Damien George | |
2016-12-22 | tests/basics/lexer: Add a test for newline-escaping within a string. | Damien George | |
2016-12-22 | extmod/modutimeq: Fix warning about unused param. | Paul Sokolovsky | |
2016-12-22 | unix: Enable utimeq module. | Paul Sokolovsky | |
2016-12-22 | tests/extmod: Add test for utimeq module. | Paul Sokolovsky | |
2016-12-22 | extmod/modutimeq: Refactor into optimized class. | Paul Sokolovsky | |
import utimeq, utime # Max queue size, the queue allocated statically on creation q = utimeq.utimeq(10) q.push(utime.ticks_ms(), data1, data2) res = [0, 0, 0] # Items in res are filled up with results q.pop(res) | |||
2016-12-22 | extmod/modutimeq: Copy of current moduheapq with timeq support for refactoring. | Paul Sokolovsky | |
2016-12-21 | tests: Add tests to improve coverage of objarray.c. | Rami Ali | |
2016-12-21 | tests: Add tests to improve coverage of runtime.c. | Rami Ali | |
2016-12-21 | py/emitglue: Refactor to remove assert(0), to improve coverage. | Damien George | |
2016-12-21 | py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl. | Damien George | |
And also simplify it to remove the check for small int. This can be done because this function is only ever called if the argument is not a small int. | |||
2016-12-21 | tests/import: Add a test which uses ... in from-import statement. | Damien George | |
2016-12-20 | esp8266: Force relinking OTA firmware image if built after normal one. | Paul Sokolovsky | |
2016-12-20 | esp8266/modesp: flash_user_start(): Support configuration with yaota8266. | Paul Sokolovsky | |
It's pretty rough way to detect yaota8266 being used, but otherwise allows to have a filesystem in such config. | |||
2016-12-20 | tests/basics: Improve test coverage for generators. | Rami Ali | |
2016-12-20 | tests/run-tests: For REPL tests make sure the REPL is exited at the end. | Damien George | |
2016-12-20 | tests/basics/set_pop: Improve coverage of set functions. | Damien George | |