Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
9 years ago
Damien George
731f359292
all: Add py/mphal.h and use it in all ports.
py/mphal.h contains declarations for generic mp_hal_XXX functions, such
as stdio and delay/ticks, which ports should provide definitions for. A
port will also provide mphalport.h with further HAL declarations.
9 years ago
Paul Sokolovsky
6a09e7d7ae
esp8266: Switch to standard mp_hal_ticks_ms() MPHAL function.
9 years ago
Paul Sokolovsky
ebd9f550e8
esp8266: Switch to standard mp_hal_delay_ms() MPHAL function.
9 years ago
Paul Sokolovsky
5699fc9d0e
esp8266: Switch to standard mp_hal_delay_us() MPHAL function.
9 years ago
Damien George
de8b585ab7
esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.
This is the standard way of doing things, one should construct a
peripheral object (even if it's a singleton).
See issue #1330 .
10 years ago
Josef Gajdusek
286ced4c2f
esp8266: Add a bunch of miscellaneous methods
10 years ago
Josef Gajdusek
25a8a42447
esp8266: Add pyb.ADC class
10 years ago
Josef Gajdusek
492fd5cb6b
esp8266: Enable setting CPU frequency to 160MHz
10 years ago
Josef Gajdusek
103d12a877
esp8266: Add utime and pyb.RTC
10 years ago
Josef Gajdusek
800d5cd16f
esp8266: Implement time functions
10 years ago
Damien George
3d91b1f67f
esp8266: Return CPU frequency in Hz.
10 years ago
Damien George
87c6250b4c
esp8266: Add basic pyb.Pin class; supports output mode only.
10 years ago
Damien George
0b32e50365
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so
long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
10 years ago
Paul Sokolovsky
f1700a5154
esp8266:modpyb: Implement hard_reset().
10 years ago
Damien George
fe7d542352
esp8266: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
3b603f29ec
Use MP_DEFINE_CONST_DICT macro to define module dicts.
This is just a clean-up of the code. Generated code is exactly the
same.
10 years ago
Damien George
075d597464
esp8266: New port of Micro Python to ESP8266 wifi module.
10 years ago