- 02 Jul, 2015 1 commit
-
-
Daniel Campora authored
The TimeoutError is useful for some modules, specially the the socket module. TimeoutError can then be alised to socket.timeout and then Python code can differentiate between socket.error and socket.timeout.
-
- 30 Jun, 2015 2 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
- 29 Jun, 2015 1 commit
-
-
Daniel Campora authored
-
- 28 Jun, 2015 4 commits
-
-
Paul Sokolovsky authored
When "micropython -m pkg.mod" command was used, relative imports in pkg.mod didn't work, because pkg.mod.__name__ was set to __main__, and the fact that it's a package submodule was missed. This is an original workaround to this issue. TODO: investigate and compare how CPython deals with this issue.
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
- 27 Jun, 2015 3 commits
-
-
Damien George authored
When enabled this allows the internal storage to be split over 2 contiguous regions of flash (two segments), and so the storage can be increased. This option is disabled by default, giving original behaviour.
-
Damien George authored
-
Damien George authored
-
- 26 Jun, 2015 5 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
CPython raises SystemError in this case, but we don't have that enabled, so raise ImportError.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Doesn't allocate memory and returns original string if no replacements are to be made.
-
Damien George authored
-
- 25 Jun, 2015 6 commits
-
-
Damien George authored
Previous to this patch each time a bytes object was referenced a new instance (with the same data) was created. With this patch a single bytes object is created in the compiler and is loaded directly at execute time as a true constant (similar to loading bignum and float objects). This saves on allocating RAM and means that bytes objects can now be used when the memory manager is locked (eg in interrupts). The MP_BC_LOAD_CONST_BYTES bytecode was removed as part of this. Generated bytecode is slightly larger due to storing a pointer to the bytes object instead of the qstr identifier. Code size is reduced by about 60 bytes on Thumb2 architectures.
-
Damien George authored
-
Paul Sokolovsky authored
Recognize and handle "package not found" error.
-
Garrett Berg authored
-
Damien George authored
-
Daniel Campora authored
The --pyboard param has been replaced by --target which defaults to 'unix'. Possible values at this moment are 'unix', 'pyboard' and 'wipy'. Now is also possible to select the baud rate of the serial device when calling the script.
-
- 24 Jun, 2015 10 commits
-
-
Damien George authored
-
Damien George authored
Thanks to Peter Hinch for contributing this.
-
Damien George authored
-
Daniel Campora authored
-
blmorris authored
This removes hard-coded DMA init params from dma_init(), instead defining these parameters in a DMA_InitTypeDef struct that gets passed as an argument to dma_init() This makes dma_init more generic so it can be used for I2S and SD Card, which require different initialization parameters.
-
Damien George authored
-
stijn authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
This script is used by Jenkins to update the WiPy with the newly built firmware before running the tests. It's not placed in the common tools folder because it is very WiPy specific.
-
- 23 Jun, 2015 2 commits
-
-
Damien George authored
-
Daniel Campora authored
Addresses issue #1347
-
- 22 Jun, 2015 5 commits
-
-
Damien George authored
To make it the same as SPI and UART.
-
Damien George authored
This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.
-
Damien George authored
The do_str() function is provided essentially as documentation to show how to compile and execute a string. This patch makes do_str take an extra arg to specify how the string should be interpreted: either as a single line (ie from a REPL) or as multiple lines (ie from a file).
-
Paul Sokolovsky authored
Also, simplify dependencies info now that we no longer require GNU readline.
-
Damien George authored
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
-
- 20 Jun, 2015 1 commit
-
-
Paul Sokolovsky authored
-