- 15 8月, 2023 7 次提交
-
-
由 Jim Mussared 提交于
Unsure of the history of the ESP32_S2_WROVER board (and why it wasn't named GENERIC_S2_...) but now it's a variant of the generic S2 board. Also removes the non-existent CONFIG_USB_AND_UART from all S2 boards. This work was funded through GitHub Sponsors. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Jim Mussared 提交于
As the IDF no longer supports earlier revisions of the C3 by default, we now just explicitly support rev 3+ and enable USB (which wasn't supported in earlier revisions). This work was funded through GitHub Sponsors. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Jim Mussared 提交于
These are now variants of the GENERIC board. This work was funded through GitHub Sponsors. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Jim Mussared 提交于
Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Damien George 提交于
Otherwise the compiler may inline the gc_collect_inner() function and/or remove the recursion, which is necessary to spill all the windowed registers to the C stack. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Angus Gratton 提交于
Via MICROPY_GC_SPLIT_HEAP_AUTO feature flag added in previous commit. Tested on ESP32 GENERIC_SPIRAM and GENERIC_S3 configurations, with some worst-case allocation patterns and the standard test suite. This work was funded through GitHub Sponsors. Signed-off-by: NAngus Gratton <angus@redyak.com.au>
-
由 Angus Gratton 提交于
Also shrinks the "prefer internal" threshold to 8KB, any allocation larger than this will try PSRAM first. Change the mbedTLS config to use regular malloc() as well, instead of internal only. The default is set to internal-only due to to potential physical security issue of readout via PSRAM on the original ESP32. However, as MicroPython runs from plaintext flash and all other context is in the MP heap of PSRAM then it's hard to see how worsens physical security for MP. This work was funded through GitHub Sponsors. Signed-off-by: NAngus Gratton <angus@redyak.com.au>
-
- 10 8月, 2023 1 次提交
-
-
由 Jim Mussared 提交于
This commit: - Finds a common set of board feature tags and maps existing features to that reduced set. - Removes some less-useful board feature tags. - Ensures all MCUs are specified correctly. - Ensures all boards have a vendor (and fixes some vendor names). This is to make the downloads page show a less intimidating set of filters. Work done in conjunction with Matt Trentini <matt.trentini@gmail.com>. This work was funded through GitHub Sponsors. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
- 25 7月, 2023 6 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Listing the IDF version number in the board description is not as important as it once was, when the IDF was still undergoing a lot of changes. Now, all builds use IDF 5.x and it's possible to query the exact version with platform.platform(). Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Otherwise constructing an invalid SPI instance (eg machine.SPI(3)) will mess up machine.SPI(2)'s state before it's detected that it's an invalid SPI id. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
On ESP32C3 it's not doing anything. On ESP32S3 the original code prevented prevented machine.SPI(1) from working. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
SPI3_HOST is not a macro but rather an enum, so use SOC_SPI_PERIPH_NUM to detect if it's defined. Fixes issue #11919. Signed-off-by: NDamien George <damien@micropython.org>
-
- 24 7月, 2023 4 次提交
-
-
由 Jim Mussared 提交于
Previously this was explicitly enabled on esp32/stm32/renesas/mimxrt/samd, but didn't get a default feature level because it wasn't in py/mpconfig.h. With this commit it's now enabled at the "extra features" level, which adds rp2, unix-standard, windows, esp8266, webassembly, and some nrf boards. This work was funded through GitHub Sponsors. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Daniël van de Giessen 提交于
This changes the ESP32 WDT implementation to use a custom handle so that it becomes possible to reset the WDT from a thread. By default esp_task_wdt_add subscribes the task_id of the current task. That means that if we're running in a different task we are unable to reset the WDT, which prevents feeding the WDT from a thread directly, or even from a timer (which may randomly run in a different task when there's multiple threads). As an added bonus, the name we set makes the error clearly specify that it was the user-specified WDT that reset the chip. Signed-off-by: NDaniël van de Giessen <daniel@dvdgiessen.nl>
-
由 Daniël van de Giessen 提交于
Since commit beeb74 we already check in modussl_mbedtls whether this function is provided by the ESP-IDF before calling it, thus we no longer need to define it here in order to compile. Removing it so that if CONFIG_MBEDTLS_DEBUG is defined we do not cause any 'multiple definition' compile errors. Signed-off-by: NDaniël van de Giessen <daniel@dvdgiessen.nl>
-
由 iabdalkader 提交于
Signed-off-by: Niabdalkader <i.abdalkader@gmail.com>
-
- 20 7月, 2023 8 次提交
-
-
由 Mark Grosen 提交于
The EXTRA_COMPONENT_DIRS variable is a list so adding a directory so should be done via append, not set. This enables boards to use other components in the build. See: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#optional-project-variables
-
由 Luca Burelli 提交于
Signed-off-by: NLuca Burelli <l.burelli@arduino.cc>
-
由 Luca Burelli 提交于
Allow boards to define their own additional USB callbacks. Signed-off-by: NLuca Burelli <l.burelli@arduino.cc>
-
由 Luca Burelli 提交于
Implement a standard machine.bootloader() method for ESP32-series devices. No default implementation, each board can enable it as required. Signed-off-by: NLuca Burelli <l.burelli@arduino.cc>
-
由 Luca Burelli 提交于
Some targets like the ESP32-S3 use the IDF Component Manager to provide additional dependencies to the build. Make sure to include these extra components when collecting properties used by MicroPython-specific build steps, like qstr preprocessing. Signed-off-by: NLuca Burelli <l.burelli@arduino.cc>
-
由 Damien George 提交于
This adds named-pins support to the esp32 port, following other ports. Since the name of esp32 CPU pins is just GPIOx, where x is an integer, the Pin.cpu dict is not supported and CPU pins are just retrieved via their existing integer "name" (the cost of adding Pin.cpu is about 800 bytes, mostly due to the additional qstrs). What this commit supports is the Pin.board dict and constructing a pin by names given by a board. These names are defined in a pins.csv file at the board level. If no such file exists then Pin.board exists but is empty. As part of this commit, pin and pin IRQ objects are optimised to reduce their size in flash (by removing their gpio_num_t entry). The net change in firmware size for this commit is about -132 bytes. Signed-off-by: NDamien George <damien@micropython.org>
-
由 robert-hh 提交于
This applies to all machine modules which have pins as arguments. Since machine_pin_get_id() calls pin_find(), these pin arguments may be at the moment either integer objects or Pin objects. That allows for instance to write uart = UART(1, tx=Pin(4), rx=Pin(5)) instead of uart = UART(1, tx=4, rx=5) which is consistent with other ports. Since this handling is done at a single place in the code, extending that scheme to accept strings for named pins is easy. Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 robert-hh 提交于
The new machine_pin_find() function accepts a Pin object and a integer object as input and returns a pin object. That can be extended later to accept a string object, once named pins are supported. Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
- 14 7月, 2023 1 次提交
-
-
由 Damien George 提交于
The legacy driver was deprecated in IDF v5, and crashes when the ISR handler is called. Instead of fixing the legacy code, this commit reworks the machine.Timer class to use the low-level HAL driver. Tested on ESP32, ESP32S2, ESP32S3 and ESP32C3. Behaviour is the same as it was before this commit, except the way the Timer object is printed, it now gives more useful information (timer id, mode, period in ms). Fixes issue #11970. Signed-off-by: NDamien George <damien@micropython.org>
-
- 13 7月, 2023 1 次提交
-
-
由 Glenn Moloney 提交于
This is a fix for commit bccbaa92: - Should only wait for WIFI_EVENT_STA_START when invoked on the STA_IF interface. - The WIFI_EVENT_STA_START event is generated every time the STA_IF interface is set active(True) and it was previously inactive, ie. not only after calling esp_wifi_start(). - Also wait for WIFI_EVENT_STA_STOP when deactivating the interface. - Also wait for relevant AP events. Fixes issue #11910. Signed-off-by: NGlenn Moloney <glenn.moloney@gmail.com> Signed-off-by: NDamien George <damien@micropython.org>
-
- 11 7月, 2023 2 次提交
-
-
由 Damien George 提交于
Enabling mDNS put this firmware over the limit of the OTA partition size, so tweak the compiler settings to reduce the firmware size. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Carlosgg 提交于
mDNS was disabled in e4650125. This commit re-enables it. For reference see: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/release-5.x/5.0/removed-components.htmlSigned-off-by: NCarlos Gil <carlosgilglez@gmail.com>
-
- 27 6月, 2023 1 次提交
-
-
由 Damien George 提交于
Fixes issue #11872. Signed-off-by: NDamien George <damien@micropython.org>
-
- 25 6月, 2023 1 次提交
-
-
由 Wind261 提交于
Signed-off-by:
Wind-stormger <storm-wind@foxmail.com>
-
- 24 6月, 2023 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 23 6月, 2023 7 次提交
-
-
由 Damien George 提交于
And change erase_flash to erase-flash, because the former is deprecated since IDF 4.4. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Glenn Moloney 提交于
IDF v5.0 provides access to rssi value for received espnow packets via recv_info arg to recv_cb(). Signed-off-by: NGlenn Moloney <glenn.moloney@gmail.com>
-
由 Damien George 提交于
This commit updates the esp32 port to work exclusively with ESP-IDF v5. IDF v5 is needed for some of the newer ESP32 SoCs to work, and it also cleans up a lot of the inconsistencies between existing SoCs (eg S2, S3, and C3). Support for IDF v4 is dropped because it's a lot of effort to maintain both versions at the same time. The following components have been verified to work on the various SoCs: ESP32 ESP32-S2 ESP32-S3 ESP32-C3 build pass pass pass pass SPIRAM pass pass pass N/A REPL (UART) pass pass pass pass REPL (USB) N/A pass pass N/A filesystem pass pass pass pass GPIO pass pass pass pass SPI pass pass pass pass I2C pass pass pass pass PWM pass pass pass pass ADC pass pass pass pass WiFi STA pass pass pass pass WiFi AP pass pass pass pass BLE pass N/A pass pass ETH pass -- -- -- PPP pass pass pass -- sockets pass pass pass pass SSL pass ENOMEM pass pass RMT pass pass pass pass NeoPixel pass pass pass pass I2S pass pass pass N/A ESPNow pass pass pass pass ULP-FSM pass pass pass N/A SDCard pass N/A N/A pass WDT pass pass pass pass Signed-off-by: NDamien George <damien@micropython.org> Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Damien George 提交于
The hall sensor is no longer supported by IDF v5. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
This function was made private/static in IDF commit c67f4c2b4c2bb4b7740f988fc0f8a3e911e56afe, so it add back here. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Angus Gratton 提交于
Allows registering UART interrupt again. Signed-off-by: NAngus Gratton <angus@redyak.com.au>
-