- 03 Feb, 2017 1 commit
-
-
Damien George authored
-
- 31 Jan, 2017 1 commit
-
-
Damien George authored
This patch brings the _thread module to stmhal/pyboard. There is a very simple round-robin thread scheduler, which is disabled if there is only one thread (for efficiency when threading is not used). The scheduler currently switches threads at a rate of 250Hz using the systick timer and the pend-SV interrupt. The GIL is disabled so one must be careful to use lock objects to prevent concurrent access of objects. The threading is disabled by default, one can enabled it with the config option MICROPY_PY_THREAD to test it out.
-
- 30 Jan, 2017 1 commit
-
-
Damien George authored
Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
-
- 27 Jan, 2017 1 commit
-
-
Damien George authored
This patch makes the following configuration changes: - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure - MICROPY_VFS is enabled, giving new VFS sub-system - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b User facing API should be almost unchanged. Most notable changes are removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't allow unmounting by passing None as the device.
-
- 24 Jan, 2017 1 commit
-
-
Damien George authored
The order now follows that in py/mpconfig.h and is a bit cleaner and easier to maintain. No options were changed/added/removed with this patch, it's just a reordering.
-
- 22 Jan, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 23 Dec, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Dec, 2016 3 commits
-
-
Damien George authored
-
Damien George authored
mp_kbd_exception is now considered the standard variable name to hold the singleton KeyboardInterrupt exception. This patch also moves the creation of this object from pyb_usb_init() to main().
-
Damien George authored
-
- 13 Dec, 2016 1 commit
-
-
Damien George authored
It can be overridden by a board if needed.
-
- 08 Dec, 2016 2 commits
-
-
Damien George authored
This is a pure refactoring (and simplification) of code so that stmhal uses the software SPI class provided in extmod, for the machine.SPI implementation.
-
Damien George authored
So long as a port defines relevant mp_hal_pin_xxx functions (and delay) it can make use of this software SPI class without the need for additional code.
-
- 05 Dec, 2016 1 commit
-
-
Damien George authored
-
- 02 Dec, 2016 1 commit
-
-
Damien George authored
To make moduselect be usable by any port.
-
- 23 Nov, 2016 1 commit
-
-
Damien George authored
This allows one to construct an I2C object using ids that are specific to the stmhal port, eg machine.I2C('X'). Right now the implementation of I2C uses software I2C but the idea is to just change the C-level I2C protocol functions to hardware implementations later on.
-
- 20 Nov, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 16 Nov, 2016 1 commit
-
-
Damien George authored
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
-
- 17 Oct, 2016 1 commit
-
-
Damien George authored
Also adds "machine" to the list of modules that the parser can search for constants.
-
- 14 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
This includes making sure that utime_mphal's sleep_ms() and sleep_us() don't sleep on negative arguments.
-
- 06 Oct, 2016 2 commits
-
-
Damien George authored
-
Dave Hylands authored
-
- 04 Oct, 2016 1 commit
-
-
Damien George authored
-
- 01 Sep, 2016 1 commit
-
-
Damien George authored
-
- 15 Aug, 2016 1 commit
-
-
Damien George authored
This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
-
- 30 Jul, 2016 1 commit
-
-
Matt Brejza authored
-
- 10 May, 2016 1 commit
-
-
Damien George authored
-
- 14 Apr, 2016 1 commit
-
-
Paul Sokolovsky authored
These are *defined* per-port, but why redeclare them again and again.
-
- 12 Apr, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 25 Feb, 2016 1 commit
-
-
Damien George authored
-
- 14 Feb, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 10 Feb, 2016 1 commit
-
-
Damien George authored
This patch adds support to fsusermount for multiple block devices (instead of just one). The maximum allowed is fixed at compile time by the size of the fs_user_mount array accessed via MP_STATE_PORT, which in turn is set by MICROPY_FATFS_VOLUMES. With this patch, stmhal (which is still tightly coupled to fsusermount) is also modified to support mounting multiple devices And the flash and SD card are now just two block devices that are mounted at start up if they exist (and they have special native code to make them more efficient).
-
- 03 Feb, 2016 1 commit
-
-
Doug Currie authored
For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments.
-
- 26 Jan, 2016 1 commit
-
-
Damien George authored
Functions added are: - randint - randrange - choice - random - uniform They are enabled with configuration variable MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default. It is enabled for unix coverage build and stmhal.
-
- 17 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang
-
- 07 Jan, 2016 1 commit
-
-
Damien George authored
They are no longer needed because stm constants can now be 32 bits wide.
-
- 19 Dec, 2015 1 commit
-
-
Dave Hylands authored
This uses the newly factored machine_mem functions.
-
- 18 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-