- Aug 03, 2014
-
-
Damien George authored
Updated teensys usb.c and switched to using usb.h from stmhal.
-
Dave Hylands authored
Removed the local usb.h from teensey directory and now uses the usb.h from the stmhal directory. Fixed the deploy target to use abspath.
-
Damien George authored
-
Damien George authored
Fix teensy to work with the latest tree.
-
Dave Hylands authored
-
- Aug 02, 2014
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Written in Python, not currently working. See issue #725.
-
- Aug 01, 2014
-
-
Damien George authored
Fix modos.c to compile for the STM32F4Discovery board
-
Dave Hylands authored
-
- Jul 31, 2014
-
-
Damien George authored
Some important changes to the way the file system is structured on the pyboard: 1. 0: and 1: drive names are now replaced with POSIX inspired directories, namely /flash and /sd. 2. Filesystem now supports the notion of a current working directory. Supports the standard Python way of manipulating it: os.chdir and os.getcwd. 3. On boot up, current directory is /flash if no SD inserted, else /sd if SD inserted. Then runs boot.py and main.py from the current dir. This is the same as the old behaviour, but is much more consistent and flexible (eg you can os.chdir in boot.py to change where main.py is run from). 4. sys.path (for import) is now set to '' (current dir), plus /flash and /flash/lib, and then /sd and /sd/lib if SD inserted. This, along with CWD, means that import now works properly. You can import a file from the current directory. 5. os.listdir is fixed to return just the basename, not the full path. See issue #537 for background and discussion.
-
Damien George authored
This reflects how it's done in stmhal/Makefile, via deploy.
-
Damien George authored
Reduces by about a factor of 10 on average the amount of RAM needed to store the line-number to bytecode map in the bytecode prelude. Using CPython3.4's stdlib for statistics: previously, an average of 13 bytes were used per (bytecode offset, line-number offset) pair, and now with this improvement, that's down to 1.3 bytes on average. Large RAM usage before was due to some very large steps in line numbers, both from the start of the first line in a function way down in the file, and also functions that have big comments and/or big strings in them (both cases were significant). Although the savings are large on average for the CPython stdlib, it won't have such a big effect for small scripts used in embedded programming. Addresses issue #648.
-
Damien George authored
This removes mpz_as_int, since that was a terrible function (it implemented saturating conversion). Use mpz_as_int_checked and mpz_as_uint_checked. These now work correctly (they previously had wrong overflow checking, eg print(chr(10000000000000)) on 32-bit machine would incorrectly convert this large number to a small int).
-
Damien George authored
Addresses issue #724.
-
Damien George authored
For accel to start-up reliably, need to wait 30ms between on/off, and 30ms for it to enter active mode. With this fix the accel can be read immediately after initialising it. Addresses issue #763.
-
Damien George authored
Before, pyb.stdin/pyb.stdout allowed some kind of access to the USB VCP device, but it was basic access. This patch adds a proper USB_VCP class and object with much more control over the USB VCP device. Create an object with pyb.USB_VCP(), then use this object as if it were a UART object. It has send, recv, read, write, and other methods. send and recv allow a timeout to be specified. Addresses issue 774.
-
Damien George authored
This allows to create str's with a smaller length than initially asked for.
-
- Jul 30, 2014
-
-
Damien George authored
Lexer is now 8-bit clean inside strings.
-
- Jul 29, 2014
-
-
Damien George authored
Add support for storing args during an exception raised by an irq.
-
- Jul 28, 2014
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Many OSes/CPUs have affinity to put "user" data into lower half of address space. Take advantage of that and remap such addresses into full small int range (including negative part). If address is from upper half, long int will be used. Previously, small int was returned for lower quarter of address space, and upper quarter. For 2 middle quarters, long int was used, which is clearly worse schedule than the above.
-
- Jul 27, 2014
-
-
Damien George authored
-
- Jul 25, 2014
-
-
Dave Hylands authored
The user code should call micropython.alloc_emergency_exception_buf(size) where size is the size of the buffer used to print the argument passed to the exception. With the test code from #732, and a call to micropython.alloc_emergenncy_exception_buf(100) the following error is now printed: ```python >>> import heartbeat_irq Uncaught exception in Timer(4) interrupt handler Traceback (most recent call last): File "0://heartbeat_irq.py", line 14, in heartbeat_cb NameError: name 'led' is not defined ```
-
- Jul 24, 2014
-
-
Damien George authored
Add GNUmakefile to the .gitignore file.
-
Damien George authored
Addresses issue #765.
-
Dave Hylands authored
-
- Jul 22, 2014
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Allow DFU_UTIL to be overridden from the environment.
-
Damien George authored
Enable 16-bit memory addresses for i2c.mem_read and i2c_mem_write
-
Damien George authored
Deal with reading a buffer less than what was allocated.
-
blmorris authored
-
blmorris authored
to maintain compatibility with existing code.
-
Dave Hylands authored
With this fix, file_long_read now passes.
-
- Jul 21, 2014
-
-
Dave Hylands authored
-
Paul Sokolovsky authored
Currently broken for unicode input streams.
-