Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | unix/modtermios: DJGPP appears to have unicode-capable cc_t type. | Paul Sokolovsky | 2015-12-09 |
| | | | | | At least it's defined as "unsiged". We don't try to support unicode still, but at least apply workaround for DJGPP build. | ||
* | unix/modtermios: Provide B57600 and B115200 constants only if defined. | Paul Sokolovsky | 2015-12-09 |
| | |||
* | extmod/moductypes: sizeof operation depends on layout type of structure. | Paul Sokolovsky | 2015-12-09 |
| | | | | | | | Previously, sizeof() blindly assumed LAYOUT_NATIVE and tried to align size even for packed LAYOUT_LITTLE_ENDIAN & LAYOUT_BIG_ENDIAN. As sizeof() is implemented on a strucuture descriptor dictionary (not an structure object), resolving this required passing layout type around. | ||
* | extmod: Add test which demonstrates LITTLE_ENDIAN packing failure | Dave Hylands | 2015-12-09 |
| | |||
* | py: Add mp_get_stream_raise to factor out check for stream methods. | Damien George | 2015-12-09 |
| | |||
* | stmhal/timer: Use mp_float_t instead of float. | Damien George | 2015-12-09 |
| | | | | This way mp_float_t can be changed to, eg, double. | ||
* | py: Fix calling of parent classmethod from instance of subclass. | Damien George | 2015-12-09 |
| | | | | Addresses issue #1697. | ||
* | stmhal: Enable two USB phys to be supported together. | neilh10 | 2015-12-09 |
| | | | | | | | | | | | | | This is refactoring to enable support for the two USB PHYs available on some STM32F4 processors to be used at the same time. The F405/7 & F429 have two USB PHYs, others such as the F411 only have one PHY. This has been tested separately on a pyb10 (USB_FS PHY) and F429DISC (USB_HS PHY) to be able to invoke a REPL/USB. I have modified a PYBV10 to support two PHYs. The long term objective is to support a 2nd USB PHY to be brought up as a USB HOST, and possibly a single USB PHY to be OTG. | ||
* | tests: Disable for_range.py test for native emitter (it requires yield). | Damien George | 2015-12-08 |
| | |||
* | py: Don't try to optimise for+range when args are not simple expressions. | Damien George | 2015-12-08 |
| | | | | Addresses issue #1693. | ||
* | tools: Fix pyboard.py to work under Python 3. | Damien George | 2015-12-08 |
| | |||
* | tools: Add option to pyboard.py to wait for serial device to be ready. | Peter Hinch | 2015-12-08 |
| | | | | | Also prints a nicer error message if the serial connection could not be established. | ||
* | py/misc.h: Include stdint.h only once (unconditionally at the top). | Paul Sokolovsky | 2015-12-08 |
| | |||
* | unix/main: mp_verbose_flag available only if MICROPY_DEBUG_PRINTERS is true. | Paul Sokolovsky | 2015-12-07 |
| | | | | Not available for minimal build for example. | ||
* | py/misc.h: Include stdint.h, as large share of code now depends on it. | Paul Sokolovsky | 2015-12-07 |
| | |||
* | tests/builtin_minmax: Make compatible with @native codegen. | Paul Sokolovsky | 2015-12-07 |
| | |||
* | stmhal: Print exception information in nlr_jump_failed | Dave Hylands | 2015-12-07 |
| | | | | | | | | | Currently nlr_jump_fail prints that there was an uncaught exception but nothing about the exception. This patch causes nlr_jump_failed to try to print the exception. Given that printf was called on the line above, I think that the call to mp_obj_print_exception has about as much likelyhood of succeeding as the printf does. | ||
* | tests/builtin_minmax: Add testcase for lazy iterable (generator). | Paul Sokolovsky | 2015-12-07 |
| | |||
* | tests: Add min/max "default" agrument test | pohmelie | 2015-12-07 |
| | |||
* | py: Add min/max "default" keyword argument | pohmelie | 2015-12-07 |
| | |||
* | py: Add MICROPY_PY_BUILTINS_MIN_MAX, disable for minimal ports. | pohmelie | 2015-12-07 |
| | |||
* | stmhal: Execute boot.py and main.py when formatting the file system. | Dave Hylands | 2015-12-07 |
| | | | | | | | | When you use the USER button to perform a filesystem reset at boot time then it wipes out the filesystem and creates a new boot.py and main.py. With this patch these files are executed after formatting, ensuring that pyb and machine modules get imported. | ||
* | py: Make it easy to build without MICROPY_PY_BUILTINS_COMPLEX. | Paul Sokolovsky | 2015-12-07 |
| | | | | Automagically skip related modules. | ||
* | tools: Allow pyboard.py to work when boot.py prints things. | Dave Hylands | 2015-12-06 |
| | |||
* | tests: Actuall add feature check for complex type being available. | Paul Sokolovsky | 2015-12-06 |
| | |||
* | tests/run-tests: Allow to skip complex tests if it's not compiled in. | Paul Sokolovsky | 2015-12-06 |
| | |||
* | unix/moduselect: register(): Allow to call with duplicate file descriptor. | Paul Sokolovsky | 2015-12-05 |
| | | | | | | | | | | | Per CPython docs, "Registering a file descriptor that’s already registered is not an error, and has the same effect as registering the descriptor exactly once." https://docs.python.org/3/library/select.html#select.poll.register That's somewhat ambiguous, what's implemented here is that if fd si not yet registered, it is registered. Otherwise, the effect is equivalent to modify() method. | ||
* | py/modsys: Use MP_ROM_PTR() initializer for sys.modules. | Paul Sokolovsky | 2015-12-05 |
| | | | | Based on similar usage for sys.argv/sys.path. | ||
* | stmhal: Fix uart off by 1 circular buffer size. | Ryan Shaw | 2015-12-04 |
| | |||
* | tests/extra_coverage: Update for sys.modules addition. | Paul Sokolovsky | 2015-12-05 |
| | |||
* | py/modsys: Implement sys.modules. | Paul Sokolovsky | 2015-12-05 |
| | | | | | This for example will allow people to reload modules which didn't load successfully (e.g. due to syntax error). | ||
* | unix/main: Check pending exception at the end of code block execution. | Paul Sokolovsky | 2015-12-04 |
| | | | | | | Usually this checking is done by VM on jump instructions, but for linear sequences of instructions and builtin functions this won't happen. Particular target of this change is long-running builtin functions like time.sleep(). | ||
* | stmhal: Add option to free up TIM3 from USB VCP polling. | Damien George | 2015-12-04 |
| | | | | | | | | This is a hack to free up TIM3 so that it can be used by the user. Instead we use the PVD irq to call the USB VCP polling function, and trigger it from SysTick (so SysTick itself does not do any processing). The feature is enabled for pyboard lite only, since it lacks timers. | ||
* | cc3200: Add __get_BASEPRI and __set_BASEPRI inline function definitions. | Damien George | 2015-12-04 |
| | |||
* | stmhal: Only use BASEPRI irq stuff if Cortex is M3 or higher. | Damien George | 2015-12-04 |
| | |||
* | stmhal: Add rtc.init() method to force RTC to re-initialise. | Damien George | 2015-12-04 |
| | |||
* | stmhal: Protect SD card DMA transactions against USB MSC contention. | Damien George | 2015-12-04 |
| | | | | | | | | | | | Consider the following scenario: SD card is being read by pyboard; USB irq comes in for MSC read request; SD card needs to be read from within USB irq while SD read is already ongoing. Such contention needs to be avoided. This patch provides a simple solution, to raise the irq priority above that of the USB irq during SD DMA transfers. Pyboard and PC can now read from the SD card at the same time (well, reads are interleaved). | ||
* | stmhal: Add raise_irq_pri and restore_irq_pri functions. | Damien George | 2015-12-04 |
| | | | | | These can be used to disable only certain interrupts, ones at or above the given priority value. | ||
* | extmod/moductypes: set_aligned(): Handle INT64/UINT64. | Paul Sokolovsky | 2015-12-04 |
| | |||
* | py: Fix function calls that have positional and a star-arg-with-iterator. | Damien George | 2015-12-03 |
| | | | | Addresses issue #1678. | ||
* | py/mpconfig: Actually allow to override MICROPY_BYTES_PER_GC_BLOCK. | Paul Sokolovsky | 2015-12-03 |
| | |||
* | unix/mpconfigport: Typo fix in comment. | Paul Sokolovsky | 2015-12-03 |
| | |||
* | py/gc: Make GC block size be configurable. | Paul Sokolovsky | 2015-12-03 |
| | |||
* | stmhal: Put all DMA channel & stream definitions in dma.h | Dave Hylands | 2015-12-02 |
| | |||
* | unix/mpconfigport.h: For MICROPY_NO_ALLOCA=1, don't even include alloca.h. | Paul Sokolovsky | 2015-12-02 |
| | |||
* | stmhal: Add board config files for PYBv1.1 and PYBLITEv1.0. | Damien George | 2015-12-02 |
| | |||
* | py/mpprint: Printing of doubles is now supported (by uPy own routine). | fabien.lementec | 2015-12-02 |
| | |||
* | unix/modtime: sleep(): Return early if KeyboardInterrupt is pending | Paul Sokolovsky | 2015-12-02 |
| | | | | | | As set by signal handler. This assumes that exception will be raised somewhere else, which so far doesn't happen for single function call. Still, it makes sense to handle that in some common place. | ||
* | stmhal: Make uart.write() function correctly for timeout=0. | Damien George | 2015-11-30 |
| | | | | | | | | | | | In non-blocking mode (timeout=0), uart.write() can now transmit all of its data without raising an exception. uart.read() also works correctly in this mode. As part of this patch, timout_char now has a minimum value which is long enough to transfer 1 character. Addresses issue #1533. | ||
* | stmhal: uart.any() function now returns number of bytes available. | Ryan Shaw | 2015-11-30 |
| |