Dave Hylands
ec37239e53
stmhal: Improvements to the STM32F4DISC UART config settings.
2016-02-15 10:11:29 +00:00
Dave Hylands
4b2938a4b0
stmhal: Some NETDUINO_PLUS_2 cleanup
...
- Put the I2C bus on the corect pins
- Add the appropriate board_init to power the shield
2016-02-15 10:07:27 +00:00
Damien George
9598f36a84
py/emitnative: Add check that RHS of viper store is of integral type.
2016-02-15 09:38:02 +00:00
Damien George
94e4bd456f
py/asmx64: Support all 16 regs in reg to memory move instructions.
2016-02-15 09:05:50 +00:00
Damien George
46fc7a3d75
py/asmx64: Add helper macro for generating REX_[WRXB] bits from a reg64.
2016-02-15 09:02:13 +00:00
Paul Sokolovsky
4cd45f48b1
cc3200: Fix breakage after VfsFat refactor.
2016-02-15 10:39:56 +02:00
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