Damien George
6823514845
esp32: Add initial support for ESP32C3 SoCs.
...
Supported features for this SoC are:
- UART REPL, filesystem
- Pin, ADC, PWM, SoftI2C, SoftSPI, Timer, RTC
- OneWire, DHT, NeoPixel
- RMT
- WiFi, Bluetooth
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:24 +10:00
Damien George
59dbbe9be7
esp32: Fix use of mp_int_t, size_t and uintptr_t.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:16 +10:00
Damien George
136369d72f
all: Update to point to files in new shared/ directory.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-12 17:08:10 +10:00
Damien George
66a86a0615
esp32: Add initial support for ESP32S2 SoCs.
...
Builds against IDF v4.3-beta2.
Signed-off-by: Damien George <damien@micropython.org>
2021-04-15 10:31:06 +10:00
Thorsten von Eicken
c10d431819
esp32: Add basic support for Non-Volatile-Storage in esp32 module.
...
This commit implements basic NVS support for the esp32. It follows the
pattern of the esp32.Partition class and exposes an NVS object per NVS
namespace. The initial support provided is only for signed 32-bit integers
and binary blobs. It's easy (albeit a bit tedious) to add support for
more types.
See discussions in: #4436 , #4707 , #6780
2021-02-19 15:05:19 +11:00
Damien George
143372ab5e
esp32: Add support to build with ESP-IDF v4.3 pre-release.
...
The esp32 port now builds against IDF v4.3-beta1, as well as v4.4-dev.
Signed-off-by: Damien George <damien@micropython.org>
2021-02-19 10:58:52 +11:00
Damien George
1dc64359da
esp32: Use path relative to root for netutils/timeutils headers.
...
Signed-off-by: Damien George <damien@micropython.org>
2020-10-06 12:32:20 +11:00
stijn
84fa3312cf
all: Format code to add space after C++-style comment start.
...
Note: the uncrustify configuration is explicitly set to 'add' instead of
'force' in order not to alter the comments which use extra spaces after //
as a means of indenting text for clarity.
2020-04-23 11:24:25 +10:00
Thorsten von Eicken
a177831c46
esp32/modesp32: Add idf_heap_info(capabilities) to esp32 module.
...
This commit adds an idf_heap_info(capabilities) method to the esp32 module
which returns info about the ESP-IDF heaps. It's useful to get a bit of a
picture of what's going on when code fails because ESP-IDF can't allocate
memory anymore. Includes documentation and a test.
2020-04-23 00:02:11 +10:00
Jim Mussared
def76fe4d9
all: Use MP_ERROR_TEXT for all error messages.
2020-04-05 15:02:06 +10:00
Damien George
ad9a0ec8ab
all: Convert exceptions to use mp_raise_XXX helpers in remaining places.
2020-03-18 17:26:19 +11:00
Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
...
This is run with uncrustify 0.70.1, and black 19.10b0.
2020-02-28 10:33:03 +11:00
Damien George
d97b40bdaa
py: Introduce MP_ROM_FALSE/MP_ROM_TRUE for ROM to refer to bool objects.
...
This helps to prevent mistakes, and allows easily changing the ROM value of
False/True if needed.
2019-12-27 22:54:20 +11:00
Matt Trentini
0e0e6132fd
esp32/esp32_rmt: Add initial support for RMT peripheral.
...
This is an ESP32-specific peripheral so lives in the esp32 module.
2019-12-20 12:24:51 +11:00
Damien George
c13f9f209d
all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).
...
This helper function was added a while ago and these are the remaining
cases to convert, to save a bit of code size.
2019-11-05 11:35:45 +11:00
Damien George
05eb897d06
esp32: Add esp32.Partition class to expose partition and OTA funcs.
...
Partitions are exposed as a standard MicroPython block device.
2019-08-20 16:49:18 +10:00
Eric Poulsen
5e5aef53fb
esp32/modesp32: Add hall_sensor() function.
2018-10-19 17:28:02 +11:00
Damien George
a3ba5f127e
esp32/modesp32: Use MP_ROM_QSTR and MP_ROM_PTR in const locals dict.
2018-07-16 00:02:35 +10:00
Jérôme Poulin
4f5b435d9b
esp32/modesp32: Add raw temperature reading to esp32 module.
...
Using direct register control as specified by ESP-IDF in
components/esp32/test/test_tsens.c. Temperature doesn't represent any
particular unit, isn't calibrated and will vary from device to device.
2018-07-16 00:02:26 +10:00
Andreas Valder
298c072433
esp32: Add support for the esp32's ULP.
...
The ULP is available as esp32.ULP(). See README.ulp.md for basic usage.
2018-05-01 16:19:37 +10:00
Damien George
60c6b880fa
esp32/machine_rtc: Move export declaration from .c to common .h file.
2018-02-17 00:52:55 +11:00
Eric Poulsen
abec47a1cd
esp32/modesp32: Add new module "esp32" to support extra wake features.
...
The machine.Pin class is also updated to support these wake-on-pin
features.
2018-02-17 00:49:05 +11:00