Paul Sokolovsky
46a0ac02c5
extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf.
...
TODO: Probably merge into vfs_fat_diskio.
2016-02-15 00:19:27 +02:00
Paul Sokolovsky
6b0c88256b
extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.
2016-02-15 00:16:46 +02:00
Paul Sokolovsky
8cb78e0e53
extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.
2016-02-15 00:08:37 +02:00
Paul Sokolovsky
72085a669b
py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.
2016-02-15 00:02:03 +02:00
Paul Sokolovsky
9fdac9144d
tests/vfs_fat_ramdisk: Allow to override sector size.
2016-02-14 20:52:38 +02:00
Paul Sokolovsky
9d0525182d
tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.
2016-02-14 20:45:08 +02:00
Paul Sokolovsky
9e0478a902
stmhal/diskio: Add provision for default returns for ioctl INIT/SEC_SIZE.
...
If None was returned for such requests (which likely means that user simply
didn't handle them), it means successful init and default sector size of 512
bytes respectively. This makes only BP_IOCTL_SEC_COUNT a mandatory request,
and thus re-establishes parity with old interface, where only .count() is
mandatory().
2016-02-14 20:34:30 +02:00
Paul Sokolovsky
0ee1d0f407
tests/vfs_fat_ramdisk: Add test for VfsFat.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
e3c66a5a67
stmhal/file: Paranoid compiler warnings cleanness.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
baf47c84c4
stmhal/diskio,file: Nanbox cleanness.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
1bb15ca427
extmod/fsusermount,vfs_fat: Nanbox cleanness.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
8a43a41b3a
unix: Enable VfsFat support.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
e9be6a378c
extmod/vfs_fat: Object-oriented encapsulation of FatFs VFS.
...
This implements OO interface based on existing fsusermount code and with
minimal changes to it, to serve as a proof of concept of OO interface.
Examle of usage:
bdev = RAMFS(48)
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev, "/ramdisk")
f = vfs.open("foo", "w")
f.write("hello!")
f.close()
2016-02-14 19:15:21 +02:00
Paul Sokolovsky
dc3eb55e6a
py/obj.h: If not float support is enabled, define mp_obj_is_float(o) to false.
...
We have so many configuration options, that finally having shortcuts like
this is helpful and cuts on number of ifdef's.
2016-02-14 19:12:57 +02:00
Paul Sokolovsky
e5cff5b223
tests/bytearray1: Add testcases for "in" operator.
2016-02-14 18:57:18 +02:00
Paul Sokolovsky
c38809e26b
py/objarray: Implement "in" operator for bytearray.
2016-02-14 18:57:11 +02:00
Paul Sokolovsky
609a9c6b71
eagle.rom.addr.v6.ld: More symbols from SDK 1.5.0.
2016-02-14 13:09:42 +02:00
Paul Sokolovsky
bf904b238d
extmod/fsusermount: umount: Add NULL pointer checks.
2016-02-13 22:55:35 +02:00
Paul Sokolovsky
d4315a6caf
float/string_format: Split large test in 2.
2016-02-13 17:18:55 +02:00
Paul Sokolovsky
2850e7cd97
tests/run-tests: Add esp8266 target.
2016-02-13 17:03:12 +02:00
Paul Sokolovsky
dc587a3623
test/float2int: Make test output clearer.
2016-02-13 17:03:02 +02:00
Paul Sokolovsky
a2e39a756c
esp8266/modpybrtc: Simplify multiplication by fixed-point value.
2016-02-12 23:20:52 +02:00
Dave Hylands
32b7e93535
stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3
2016-02-10 21:26:14 -08:00
Dave Hylands
f791e14750
stmhal: CERB40 - Add pins defines for I2C3
2016-02-10 21:25:30 -08:00
Dave Hylands
38ac23c942
stmhal: NUCLEO 401 - Add a bunch of missing pins and reorder the pins
...
This groups the pins for a port together and puts them in numerical
order. It also adds ARDUINO pin names.
2016-02-10 21:23:45 -08:00