summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* cc3200: Optimize check for WLAN AP mode.Daniel Campora2015-07-02
|
* cc3200: Raise an exception if trying to scan for networks in AP mode.Daniel Campora2015-07-02
|
* cc3200: Add socket.timeout and socket.error exceptions.Daniel Campora2015-07-02
|
* py: Add TimeoutError exception subclassed from OSError.Daniel Campora2015-07-02
| | | | | | | 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.
* docs/wipy: Update safe boot comments to match actual behaviour.Daniel Campora2015-06-30
|
* cc3200: Add CA, certificate and key files to the updater list.Daniel Campora2015-06-30
|
* cc3200: Correct socket settimeout time format.Daniel Campora2015-06-29
|
* builtinimport: Fix running package submodule with -m.Paul Sokolovsky2015-06-29
| | | | | | | 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.
* cc3200: Adapt update-wipy.py timing to improve stability.Daniel Campora2015-06-28
|
* cc3200: Add `Pin.name()` method.Daniel Campora2015-06-28
|
* cc3200: Enable more features to improve compatibility with stmhal.Daniel Campora2015-06-28
|
* stmhal: Add config option for storage to use second flash segment.Damien George2015-06-27
| | | | | | | | 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.
* docs: Fix duplicate label error for network.WLAN.Damien George2015-06-27
|
* docs: Make index link point to "index.html" irrespective of port.Damien George2015-06-27
|
* tests: Add test for relative import without package context.Paul Sokolovsky2015-06-27
|
* builtinimport: Catch case when relative import happens without active package.Paul Sokolovsky2015-06-27
| | | | | CPython raises SystemError in this case, but we don't have that enabled, so raise ImportError.
* runtime: Improve mp_import_name() debug logging.Paul Sokolovsky2015-06-27
|
* objstr: Add note that replace() is nicely optimized.Paul Sokolovsky2015-06-26
| | | | | Doesn't allocate memory and returns original string if no replacements are to be made.
* docs: Add link from pyboard asm tutorial to asm reference.Damien George2015-06-26
|
* py: Remove mp_load_const_bytes and instead load precreated bytes object.Damien George2015-06-25
| | | | | | | | | | | | | | | | 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.
* py: Remove mp_load_const_str and replace uses with inlined version.Damien George2015-06-25
|
* tools: Update upip to 0.5.4.Paul Sokolovsky2015-06-25
| | | | Recognize and handle "package not found" error.
* CODECONVENTIONS.md: add documentation on putting comments in code.Garrett Berg2015-06-25
|
* tests: Split out json float tests to separate files.Damien George2015-06-25
|
* tests: Add support for the WiPy in run-tests script.Daniel Campora2015-06-25
| | | | | | | 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.
* docs: Add link in references index to Thumb2 assembler docs.Damien George2015-06-25
|
* docs: Add reference for Thumb2 inline assembler.Damien George2015-06-25
| | | | Thanks to Peter Hinch for contributing this.
* docs: Add "reference" directory for putting docs about the language.Damien George2015-06-25
|
* tests: Adapt misc/features.py tests for ports without floating point.Daniel Campora2015-06-24
|
* stmhal/dma.c: Modify dma_init() to accept init struct as an argumentblmorris2015-06-24
| | | | | | | | 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.
* CODECONVENTIONS.md: Mention macro and enum names.Damien George2015-06-24
|
* CODECONVENTIONS.md: Add function/variable/argument naming conventionstijn2015-06-24
|
* cc3200: Add deploy target and improve robustness of update-wipy.py.Daniel Campora2015-06-24
|
* tests: Adapt basics/memoryerror.py for ports with lower heap sizes.Daniel Campora2015-06-24
|
* cc3200: Create tools folder and add update-wipy.py script.Daniel Campora2015-06-24
| | | | | | 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.
* py: Clarify comment in parsenum.c about ValueError vs SyntaxError.Damien George2015-06-23
|
* py: Change exception type to ValueError when error reporting is terse.Daniel Campora2015-06-23
| | | | Addresses issue #1347
* stmhal: Reorganise code for parsing keyword args in I2C methods.Damien George2015-06-22
| | | | To make it the same as SPI and UART.
* esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.Damien George2015-06-22
| | | | | | | This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.
* bare-arm, minimal, qemu-arm: Make do_str() take parse-input-kind as arg.Damien George2015-06-22
| | | | | | | 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).
* README: Add quick information about builtin upip package manager.Paul Sokolovsky2015-06-22
| | | | | Also, simplify dependencies info now that we no longer require GNU readline.
* py: Cast argument for printf to int, to be compatible with more ports.Damien George2015-06-22
| | | | This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
* tests: Add testcase for open(..., "a").Paul Sokolovsky2015-06-21
|
* unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a").Ari Suutari2015-06-21
| | | | To comply with Python semantics.
* esp8266: Move status() from esp module to networkBill Owens2015-06-20
|
* py: Use a wrapper to explicitly check self argument of builtin methods.Damien George2015-06-20
| | | | | | | | | | | | | | | Previous to this patch a call such as list.append(1, 2) would lead to a seg fault. This is because list.append is a builtin method and the first argument to such methods is always assumed to have the correct type. Now, when a builtin method is extracted like this it is wrapped in a checker object which checks the the type of the first argument before calling the builtin function. This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and is enabled by default. See issue #1216.
* esp8266: README: Typo fix.Paul Sokolovsky2015-06-19
|
* py: Make showbc decode UNPACK_EX, and use correct range for unop/binop.Damien George2015-06-18
|
* esp8266: Explicit warning that port is experimental and subject to change.Paul Sokolovsky2015-06-18
|
* README: Mention esp8266 port.Paul Sokolovsky2015-06-18
|