Damien George
882ec01e42
stmhal: Initial implementation of multithreading, currently disabled.
...
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.
2017-01-31 18:42:35 +11:00
Damien George
bebb3a6160
tests/thread: Make thread_exc2 runable on baremetal.
2017-01-31 13:59:20 +11:00
Damien George
a6386f74b8
stmhal/pendsv: Fill in comments about what the stack contains.
2017-01-31 13:58:34 +11:00
Damien George
7d8c79ab6d
stmhal/main: Guard init_sdcard_fs with MICROPY_HW_HAS_SDCARD.
2017-01-31 13:04:32 +11:00
Damien George
e0381424cc
stmhal/modmachine: Add machine.Signal type.
2017-01-31 12:36:20 +11:00
Damien George
e24e03b415
stmhal/pin: Add C-level pin ioctl method.
2017-01-31 12:36:04 +11:00
Damien George
b039d93d7e
lib/oofatfs/ffconf.h: Allow to configure FS_EXFAT option.
...
Using MICROPY_FATFS_EXFAT. Enabling this has licensing implications;
see https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx
2017-01-31 12:32:24 +11:00
Damien George
80dfd65090
stmhal/main: Put /sd directory before /flash in sys.path.
...
If the SD card is mounted then its libraries (ie those that are imported)
should override any in /flash.
2017-01-31 12:30:18 +11:00
Damien George
3667ee1b88
stmhal: On boot, mount all available partitions of the SD card.
...
The first partition is mounted as "/sd" and subsequent partitions are
mounted as "/sd<part_num>". This is backwards compatible with the previous
behaviour, which just mounted the first partition on "/sd".
At this point, only FatFs filesystems are mounted.
2017-01-31 12:18:08 +11:00
Damien George
326343feeb
stmhal/README: Add paragraph about building mpy-cross.
2017-01-31 09:32:31 +11:00
Paul Sokolovsky
33b8e65bc0
tests/basics/zip: Make skippable.
2017-01-31 00:33:01 +03:00
Paul Sokolovsky
aee723ed4c
tests/run-tests: Skip frozenset tests if set literal syntax is not available.
2017-01-31 00:25:09 +03:00
Paul Sokolovsky
d335904666
zephyr/Makefile.zephyr: Support and default to networked (SLIP) QEMU.
...
Also works for non-networked builds (like minimal).
2017-01-30 21:27:29 +03:00
Andrew Gatt
10dbf2383f
extmod/vfs_fat.c: Use explicit include path for timeutils.h.
2017-01-30 23:10:16 +11:00
Damien George
c30b308492
extmod/vfs_reader: Fix use of NLR by popping context.
2017-01-30 22:26:54 +11:00
Damien George
5ec5bfb0d3
docs/pyboard/tutorial/lcd160cr_skin: Fix typo, get_touched->get_touch.
2017-01-30 18:19:29 +11:00
Damien George
6b12934fec
stmhal: Fix stack pointer initialisation for F411 and F429 boards.
...
The stack pointer should start pointing 1 byte past the top of the end of
RAM.
2017-01-30 17:47:11 +11:00
Damien George
a526352454
stmhal: Set the FatFs partition number when initialising VFS object.
...
stmhal has MULTI_PARTITION enabled for FatFs and so these values need to be
initialised.
2017-01-30 13:02:10 +11:00
Damien George
220abca311
stmhal: Use LED constants from PYBv4 onwards.
2017-01-30 13:01:21 +11:00
Damien George
30beed119f
unix/modos: Remove VfsFat from uos module, it's now in uos_vfs module.
2017-01-30 12:26:08 +11:00
Damien George
0fb27888fc
extmod/vfs_fat: Remove unused function fat_vfs_listdir.
2017-01-30 12:26:08 +11:00
Damien George
196406e17a
extmod/vfs_fat: Remove unused fatfs_builtin_open function.
2017-01-30 12:26:08 +11:00
Damien George
b697c89009
extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h.
...
vfs.h is for generic VFS declarations, and vfs_fat.h is for VfsFat
specific things.
2017-01-30 12:26:08 +11:00
Damien George
9425bf5b2b
lib/fatfs: Remove old fatfs library component, it's replaced by oofatfs.
2017-01-30 12:26:08 +11:00
Damien George
0bd61d23b9
extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.
...
Everyone should now be using the new ooFatFs library. The old one is no
longer supported and will be removed.
2017-01-30 12:26:07 +11:00