Damien George
30cf503e97
py/objset: Make inplace binary operators actually modify the set.
2017-02-02 23:33:49 +11:00
Paul Sokolovsky
b32880bd51
tests/heapalloc_bytesio: Test for BytesIO with preallocates space.
2017-02-02 00:38:38 +03:00
Paul Sokolovsky
50d3a9df67
py/objstringio: Allow to specify initial capacity by passing numeric argument.
...
E.g. uio.BytesIO(100) will allocate buffer with 100 bytes of space.
2017-02-02 00:33:43 +03:00
Dave Hylands
aee74a1dae
unix: Make stack be non-executable
...
This PR is to address issue #2812 .
2017-02-01 23:03:10 +03:00
Paul Sokolovsky
00bd145398
zephyr/README: Describe many gotchas of networked builds.
2017-02-01 21:28:11 +03:00
Damien George
28185bb81b
tests/thread: Fix stack size test so tests run reliably on baremetal.
2017-02-01 17:21:35 +11:00
Glenn Ruben Bakke
9e6acda85c
nrf5/i2c: Making use of hal twi tx function in writeto function.
2017-01-31 22:48:07 +01:00
Glenn Ruben Bakke
4b38644531
nrf5/hal: Updating twi driver with template functions.
2017-01-31 22:46:04 +01:00
Glenn Ruben Bakke
4a568ec1ed
nrf5/hal: Updating TWI DMA implementation. Suspend not working on tx. Rx not implemented yet.
2017-01-31 22:36:47 +01:00
Andrew Gatt
9d3c0d423e
lib/oofatfs/ffconf.h: Add MICROPY_FATFS_NORTC option.
2017-01-31 19:54:20 +11:00
Damien George
8e00844929
stmhal: Fix build issue when MICROPY_PY_THREAD is disabled.
2017-01-31 19:52:50 +11:00
Damien George
00e7176624
stmhal/main: Use _estack value to initialise stack extents.
2017-01-31 18:43:46 +11:00
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
Glenn Ruben Bakke
5004a6f811
nrf5/hal: Updating twi master tx with stop parameter.
2017-01-30 23:05:27 +01: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
Glenn Ruben Bakke
ed976e07fe
nrf5/hal: Adding i2c master functions for tx and rx in hal header.
2017-01-30 21:32:20 +01: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
Damien George
95635ade8b
unix/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.
2017-01-30 12:26:07 +11:00
Damien George
c95c583857
esp8266/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.
2017-01-30 12:26:07 +11:00
Damien George
1808b2e8d5
extmod: Remove MICROPY_FSUSERMOUNT and related files.
...
Replaced by MICROPY_VFS and the VFS sub-system.
2017-01-30 12:26:07 +11:00
Damien George
3d6f957208
extmod/vfs_fat: Remove MICROPY_FSUSERMOUNT_ADHOC config option.
2017-01-30 12:26:07 +11:00
Damien George
8beba7310f
extmod/vfs_fat: Remove MICROPY_READER_FATFS component.
2017-01-30 12:26:07 +11:00
Damien George
56506fd64a
cc3200: Convert to use new VFS sub-system and new ooFatFs library.
2017-01-30 12:26:07 +11:00
Damien George
6eafa54486
extmod/vfs: Expose lookup_path_raw as mp_vfs_lookup_path.
...
It can be useful for low-level lookup of paths by ports.
2017-01-30 12:18:35 +11:00
Damien George
ec3274324b
extmod/vfs_fat: Update to use FF_DIR instead of DIR.
2017-01-30 12:08:15 +11:00
Damien George
28899cd971
lib/oofatfs: Update oofatfs library.
...
From https://github.com/micropython/oofatfs , branch work-R0.12b,
commit 46fb53331e7a583c29a41d37ce4b53f2718597e5.
2017-01-30 12:07:40 +11:00
Glenn Ruben Bakke
8ffe804c24
nrf5/hal: Adding new macros functions to mphalport.h which are used by extmod i2c machine module.
2017-01-30 00:32:19 +01:00
Glenn Ruben Bakke
61c026e51f
nrf5/i2c: Adopting use of extmod/machine_i2c module as base for port's machine i2c module.
2017-01-30 00:31:00 +01:00