Damien George
6771adc75f
esp8266/mpconfigport.h: Enable help('modules') feature.
2017-02-24 18:26:51 +11:00
Damien George
ae8d867586
py: Add iter_buf to getiter type method.
...
Allows to iterate over the following without allocating on the heap:
- tuple
- list
- string, bytes
- bytearray, array
- dict (not dict.keys, dict.values, dict.items)
- set, frozenset
Allows to call the following without heap memory:
- all, any, min, max, sum
TODO: still need to allocate stack memory in bytecode for iter_buf.
2017-02-16 18:38:06 +11:00
Damien George
39100dc377
esp8266/moduos: Populate release field of uname in case it was GC'd.
2017-02-13 11:47:17 +11:00
marc hoffman
91eb0153d3
esp8266/uart: Add support for polling uart device.
2017-02-03 17:15:43 +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
c95c583857
esp8266/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.
2017-01-30 12:26:07 +11:00
Paul Sokolovsky
287180a0a8
esp8266/modmachine: Add Signal class.
2017-01-29 18:57:37 +03:00
Paul Sokolovsky
18b6835a92
esp8266/machine_pin: Implement pin ioctl protocol.
...
For polymorphic interfacing on C level.
2017-01-29 18:47:27 +03:00
Damien George
4565d42e70
esp8266/fatfs_port: Include new oofatfs header.
2017-01-27 23:22:15 +11:00
Damien George
f9ecd484bb
esp8266: Change to use new generic VFS sub-system.
...
The VFS sub-system supports mounting of an arbitrary number of devices
(limited only by available RAM). The internal flash is now mounted at
"/flash".
2017-01-27 17:21:45 +11:00
Damien George
32a1138b9f
extmod: Rename vfs_fat_file.h to vfs_fat.h.
...
And move declaration of mp_fat_vfs_type to this file.
2017-01-27 15:04:17 +11:00
Damien George
8d5c6332c0
esp8266: Switch to use OO version of FatFs library.
2017-01-27 13:19:11 +11:00
Damien George
b32a38e373
esp8266: Factor out common linker code to esp8266_common.ld.
2017-01-25 09:49:55 +11:00
Damien George
4ccd899e65
esp8266: Convert to use builtin help function.
2017-01-22 11:56:16 +11:00
Damien George
e343bea6e7
esp8266/modules/flashbdev: Change RESERVED_SECS to 0.
...
This effectively reverts the change that introduced this new constant.
The reason is so that users do not need to rebuild the filesystem on
their modules when upgrading the firmware.
Users can change RESERVED_SECS by hand if they need the feature, and in
future firmware it may default to a non-zero value.
2017-01-06 18:30:55 +11:00
Damien George
cc7e48fdc8
esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.
2017-01-06 16:22:53 +11:00
Paul Sokolovsky
4a72294d7d
esp8266/modules/flashbdev: Remove code to patch bootloader flash size.
...
This code is no longer pertinent for some time - since switchover to
SDK2.0, there must be correct flash size set for bootloader, or there's
a risk of flash data corruption. And indeed, the correct flash size is
by default auto-detected by esptool.py 1.2.
2017-01-05 22:26:23 +03:00
Paul Sokolovsky
eac22e29a5
all: Consistently update signatures of .make_new and .call methods.
...
Otherwise, they serve reoccurring source of copy-paste mistakes and
breaking nanbox build.
2017-01-04 16:10:42 +03:00
Damien George
bae7798f1e
esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.
...
Starting at esp.flash_user_start(), the reserved sectors are for general
purpose use, for example for native code generation. There is currently
one sector reserved as such.
2017-01-04 23:47:09 +11:00
Paul Sokolovsky
b0f23786da
esp8266/Makefile: Put firmware-ota.bin in build/, for consistency.
2017-01-04 10:36:28 +03:00
TheSpooler
3d96201165
esp8266/modesp: Fix a typo, print -> printf.
2017-01-03 17:10:13 +11:00
Paul Sokolovsky
714a59ab64
esp8266/modesp: Make check_fw() work with OTA firmware.
2017-01-03 00:02:00 +03:00
Paul Sokolovsky
f5750e88c5
esp8266/Makefile: Produce OTA firmware as firmware-ota.bin.
2017-01-02 19:29:41 +03:00
Paul Sokolovsky
86d210951f
esp8266/scripts/inisetup: Dump FS starting sector/size on error.
...
Should allow to diagnose/try to recover FS easier.
2017-01-02 18:52:35 +03:00
Paul Sokolovsky
1328833663
stmhal, esp8266: Enable utimeq module.
2016-12-23 14:49:13 +03:00