Damien George
cdad2b6f4d
esp8266: Implement Pin.__call__() and Pin.OPEN_DRAIN mode.
OPEN_DRAIN is of course synthesised. All pin modes are tested and
working.
9 years ago
Paul Sokolovsky
8ab16b6af0
esp8266: Add custom _assert() function.
Enabling standard assert() (by removing -DNDEBUG) produces non-bootable
binary (because all messages go to .rodata which silently overflows).
So, for once-off debugging, have a custom _assert().
9 years ago
Paul Sokolovsky
c70637bc00
esp8266/modmachine: Timer: Add ONE_SHOT and PERIODIC symbolic constants.
9 years ago
Paul Sokolovsky
98b727c931
esp8266/modmachine: Use etshal.h.
9 years ago
Paul Sokolovsky
f22a4f8e0a
esp8266/etshal.h: Add timer functions prototypes.
9 years ago
Paul Sokolovsky
f39bcb304b
esp8266/modmachine: Changing params of a timer requires disarming it first.
9 years ago
Paul Sokolovsky
7193086c03
esp8266/modmachine: Basic implementation of Timer for OS virtual timers.
9 years ago
Paul Sokolovsky
4284b3811f
esp8266: Enable modmachine.
9 years ago
Paul Sokolovsky
5d7c408ba8
esp8266: Add modmachine with mem* arrays.
9 years ago
Paul Sokolovsky
6abafca1aa
esp8266/modutime: Support float argument to time.sleep().
9 years ago
Paul Sokolovsky
a4c8ef9d16
esp8266: Reset "virtual RTC" on power on.
Initialize RTC period coefficients, etc. if RTC RAM doesn't contain valid
values. time.time() then will return number of seconds since power-on, unless
set to different timebase.
This reuses MEM_MAGIC for the purpose beyond its initial purpose (but the whole
modpybrtc.c need to be eventually reworked completely anyway).
9 years ago
Damien George
57884996b9
esp8266: Add time.{sleep_ms,sleep_us,ticks_ms,ticks_us,ticks_diff}.
Framework for time.ticks_cpu added, but not implemented.
9 years ago
Damien George
b41a14a4b9
esp8266: Add mp_hal_delay_us function.
9 years ago
Damien George
f70873db23
esp8266: Enable more features in mpconfigport.h.
This is to get the test suite running and passing.
9 years ago
Paul Sokolovsky
7480ee5892
esp8266: Enable uhashlib module.
9 years ago
Paul Sokolovsky
70fb9ee99b
esp8266: Enable config settings helpful for debugging.
9 years ago
Paul Sokolovsky
2382d30318
tests/run-tests: Skips for esp8266.
9 years ago
Paul Sokolovsky
259f1344ca
esp8266/esp8266.ld: Link in SDK version section.
Otherwise, os.uname() returns empty string for SDK version.
9 years ago
Paul Sokolovsky
ff69a1d27d
esp8266: Enable ujson, ubinascii, and uctypes modules.
9 years ago
Paul Sokolovsky
65405247a0
extmod/vfs_fat_lexer: Add func prototype for pedantic warnings.
9 years ago
Paul Sokolovsky
3aa0f2eed3
extmod/vfs_fat_lexer: Make conditional on FatFs support enabled.
9 years ago
Paul Sokolovsky
453a2a3d7c
extmod/vfs_fat: Add lexer, move from stmhal port for reuse.
9 years ago
Paul Sokolovsky
701c4152c1
tarvis: Unbreak build by ignoring lack of i386 arch in some repos.
For some reason, Travis now has Google Chrome PPA included in the builder
image, that lacks i386 arch, that leads to apt-get update error. So, ignore
it (this is not ideal as may lead to actual repo update failures to be missed,
leading to installation of old package, leading to weird errors; let's keep
that in mind).
9 years ago
Damien George
02ea74d8f5
esp8266: Add network.ifconfig().
9 years ago
Damien George
1febaf3ac3
esp8266: Change "soft reboot" message to work with pyboard.py.
9 years ago
Damien George
d083d7d610
esp8266: Allow Makefile's PORT variable to be overridden.
9 years ago
Damien George
6f4357c28e
esp8266: Enable math module.
9 years ago
Damien George
6d0629bddc
esp8266: Enable float support, using 30-bit stuffed floats.
No complex numbers though.
9 years ago
Damien George
ecd1272d16
esp8266: Switch bignum implementation from long-long to mpz.
9 years ago
Damien George
3d1d92acfc
mpy-cross: Give a more sensible error message when file doesn't exist.
9 years ago
Noah Rosamilia
6bb9d3ea3e
docs/uctypes.rst: Fix typo (steamlined -> streamlined).
9 years ago
Paul Sokolovsky
dc320164d8
unix/modsocket: Add comment regarding close() error checking (which is none).
9 years ago
Damien George
4f72aa86bf
py/qstrdefs: Add mkdir and remove qstrs for user-mountable filesystems.
9 years ago
Paul Sokolovsky
2740dd85f2
tests/vfs_fat_ramdisk: Add testcase for .rename().
9 years ago
Paul Sokolovsky
e0821830b0
extmod/vfs_fat: Add .rename() method.
9 years ago
Paul Sokolovsky
09e363316f
extmod/vfs_fat_misc: Fix cc3200 port build.
9 years ago
Paul Sokolovsky
9fb36af9af
tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").
9 years ago
Paul Sokolovsky
08fed6992f
extmod/vfs_fat_misc: Add func prototype for pedantic warnings.
9 years ago
Paul Sokolovsky
6ef65e70af
extmod/vfs_fat: Add fat_vfs_import_stat(), reusable import stat routine.
Moved from stmhal.
9 years ago
Paul Sokolovsky
eaa96a7610
tests/vfs_fat_ramdisk: Add testcase for .mkdir().
9 years ago
Paul Sokolovsky
bbe832a0b2
extmod/vfs_fat: Add .mkdir() method.
9 years ago
Paul Sokolovsky
6f469209e9
extmod/vfs_fat: Fix unused param warning/error.
9 years ago
Paul Sokolovsky
57425b648f
tests/vfs_fat_ramdisk: Add testcase for .remove().
9 years ago
Paul Sokolovsky
19749db7bf
extmod/vfs_fat: Add .remove() method.
Based on stmhal implementation - rather small, so just duplicating.
9 years ago
Paul Sokolovsky
9c081b740b
tests/vfs_fat_ramdisk: Add .listdir() testcase.
9 years ago
Paul Sokolovsky
cd6d189f48
extmod/vfs_fat: Move listdir() method from stmhal for reuse.
9 years ago
danicampora
8a18084571
cc3200: Update WiPy software version to 1.2.0
9 years ago
Damien George
ac23662550
unix: Enabled importing of persistent bytecode (.mpy files).
9 years ago
Damien George
476c15290d
stmhal: Enabled importing of persistent bytecode (.mpy files).
9 years ago
Damien George
56f76b873a
mpy-cross: Add new component, a cross compiler for MicroPython bytecode.
This component allows to generate .mpy files (pre compiled bytecode)
which can be executed within any MicroPython runtime/VM.
9 years ago