benpicco
cff1e3c2b6
Merge pull request #18259 from gschorcht/cpu/esp32/separate_xtensa_platform_code
...
cpu/esp32: move platform code for Xtensa-based ESP32x SoCs to module esp_xtensa
2022-06-26 15:13:52 +02:00
Gunar Schorcht
ea5d2b3a2e
cpu/esp_common: add module esp_xtensa to Kconfig
2022-06-26 00:09:50 +02:00
Gunar Schorcht
6aafc1e362
cpu/esp_common: add module esp_xtensa to makefiles
2022-06-26 00:09:50 +02:00
Gunar Schorcht
b37c30378b
cpu/esp_common: move exception xtensa code to module esp_xtensa
...
To allow a platform independent implementation of exceptions for different ESP32x SoC variants, the platform specific code for Xtensa based ESP SoCs is moved to a separate platform file `exception_xtensa.c`.
2022-06-25 23:22:59 +02:00
Gunar Schorcht
c6ee0aeccb
cpu/esp_common: move irq_arch xtensa code to module esp_xtensa
...
To allow a platform independent implementation of irq_arch for different ESP32x SoC variants, the platform specific code for Xtensa based ESP SoCs is moved to a separate module `esp_xtensa`.
2022-06-25 23:22:59 +02:00
Gunar Schorcht
bb4a57e125
cpu/esp_common: move thread_arch xtensa code to module esp_xtensa
...
To allow a platform independent implementation of tread_arch for different ESP32x SoC variants, the platform specific code for Xtensa based ESP SoCs is moved to a separate module `esp_xtensa`.
2022-06-25 23:22:59 +02:00
Gunar Schorcht
8fabfbd6d9
cpu/esp_common: cleanup whitespaces in periph/flash
2022-06-25 08:12:31 +02:00
Gunar Schorcht
08cae6d4a8
cpu/esp_common: DEBUG messages with portable formatting
2022-06-25 08:12:31 +02:00
Gunar Schorcht
fb2f080fa7
cpu/esp_common: use ESP-IDF for ESP32 in periph/flash
...
Updates `cpu/esp_common/periph/flash` for ESP-IDF 4.4. `spi_flash_*` functions for ESP32 are removed since these functions are now used from ESP-IDF.
2022-06-25 08:12:31 +02:00
Gunar Schorcht
94ceccbe95
cpu/esp_common: inverse MCU_* conditionals in periph/flash
...
The MCU_* conditionals are inverted so that they can be tested for ESP8266. In all other cases the MCU is any ESP32x SoC
2022-06-25 08:10:05 +02:00
benpicco
1870d38594
Merge pull request #18249 from gschorcht/cpu/esp32/variant_independent_makefiles
...
cpu/esp32: ESP32x SoC variant independent makefiles
2022-06-24 23:02:10 +02:00
Gunar Schorcht
cdd1ec81a4
cpu/esp_common: ESP32 variant independent makefiles
2022-06-23 13:19:52 +02:00
Gunar Schorcht
b60b47ff51
cpu/esp_common: inverse MCU_* conditionals to deal with ESP32 variants
...
The MCU_* conditionals are inverted so that they can be tested for ESP8266. In all other cases the MCU is any ESP32x SoC
2022-06-23 12:56:45 +02:00
Gunar Schorcht
c8d8e5d3f5
cpu/esp_common/freertos: add required ringbuffer handling
2022-06-20 21:23:47 +02:00
Gunar Schorcht
780fd9a815
cpu/esp_common/freertos: add timeout handling to xQueue
2022-06-20 21:23:47 +02:00
Gunar Schorcht
99fa182fb4
cpu/esp_common/freertos: add required task functions
2022-06-20 21:23:47 +02:00
Gunar Schorcht
ae01985588
cpu/esp_common/freertos: add xSemaphoreGetMutexHolder
...
The mutex and semaphor handling had to be extended by the thread pid.
2022-06-20 21:23:47 +02:00
Gunar Schorcht
02e52513d1
cpu/esp_common/freertos: add xQueueReset function
2022-06-20 21:23:47 +02:00
Gunar Schorcht
e4f1a94219
cpu/esp_common/freertos: allow platform independent compilation
2022-06-20 21:23:47 +02:00
Benjamin Valentin
344c065e2f
cpu/esp_common: use LittleFS2 as default FS
2022-06-02 23:21:22 +02:00
benpicco
e1e2b7c5b6
Merge pull request #17601 from gschorcht/cpu/esp32/upgrade_esp-idf_v4.4
...
cpu/esp32: Upgrade to ESP-IDF v4.4
2022-06-02 10:18:07 +02:00
Gunar Schorcht
565c2e17a0
cpu/esp32: update log module for ESP-IDF 4.4
2022-06-01 13:31:00 +02:00
Gunar Schorcht
84893c672b
cpu/esp_common: fix lock handling
...
Assertions for uninitialized locks must not be triggered as long as the scheduler is not running. Furthemore, the handling of the __malloc_static_object lock is only necessary for ESP8266.
2022-06-01 13:31:00 +02:00
Gunar Schorcht
d63c116eba
cpu/esp_esp8266: move missing _rename_r function to esp_common
2022-06-01 13:31:00 +02:00
Gunar Schorcht
d2a4d6e3d3
cpu/esp32: compile bootloader from ESP-IDF v4.4 source
2022-06-01 13:31:00 +02:00
Gunar Schorcht
443f3b87df
cpu/esp_common: missing heap functions for ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
d1d252cc58
cpu/esp_common: changes in event handling for ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
0ecbcf6561
cpu/esp_common: changes in esp_now/esp_wifi for ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
ee4a032a89
cpu/esp_common: fix compilation problems with ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
9fd056f8ec
cpu/esp_common: add missing functions for ESP-EDF v 4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
e5adb7ef34
cpu/esp32: cleanup of periph/gpio for ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
d4e061f635
cpu/esp_common/freertos: missing functions/definitions for ESP-IDF v4.4
2022-06-01 13:21:29 +02:00
benpicco
eb09fe21fd
Merge pull request #18025 from leandrolanzieri/pr/sys/random/change_kconfig_default_backend
...
sys/random/kconfig: remove HWRNG default in backend choice
2022-05-24 11:35:21 +02:00
Gunar Schorcht
72abc08d14
cpu/esp_common: small fix of lib_printf
2022-05-18 07:27:23 +02:00
Gunar Schorcht
60bbe0fe49
cpu/esp_common/makefile: move linking of libhal.a to esp8266 makefile
2022-05-18 07:27:23 +02:00
chrysn
b458d52e2b
cpu/esp_common: Set write size for flash implementation
2022-05-17 15:48:18 +02:00
Leandro Lanzieri
82726a2b2b
sys/random/kconfig: remove HWRNG default in backend choice
...
For now we match the Makefile.dep default, ignoring if the platform
presents a Hardware RNG.
2022-04-27 15:41:23 +02:00
Gunar Schorcht
cbbd02d520
dist/tools: rename esptool to esptools to use it for several tools
...
The directory `dist/tools/esptool` already contains a couple of ESP tools and not only esptool.py. As the location for a couple of ESP related tools, it is more clear to call it `esptools` instead of `esptool`.
2022-03-04 08:34:19 +01:00
Francisco Molina
c1238ad4e4
cpu/esp: model missing modules
2022-02-09 16:50:04 +01:00
Gunar Schorcht
e1c6306bf4
cpu/esp32: replace bzero by memset
2022-01-25 00:36:51 +01:00
Gunar Schorcht
e15e18b195
cpu/esp32: fix compilation errors
2022-01-25 00:36:51 +01:00
Gunar Schorcht
839cf4223d
cpu/esp32: changes for retagetable locking
2022-01-25 00:36:51 +01:00
Gunar Schorcht
881a92fe47
cpu/esp32: remove types.h in sys include
2022-01-25 00:36:51 +01:00
benpicco
c18f1c2a9b
Merge pull request #17455 from gschorcht/cpu/esp32/sdk-as-package
...
cpu/esp32: download Espressif SDK ESP-IDF as package
2022-01-24 16:13:04 +01:00
Gunar Schorcht
6c3e7c5db7
cpu/esp*: nfs_flash/cpp dependency cleanup
...
Module `esp_idf_nvs_flash` uses C++ code. Since `esp_idf_nvs_flash` module is always enabled on ESP8266, the permanent dependency on `cpp` is correct. But on ESP32, the `esp_idf_nvs_flash` module is only enabled if `esp_wifi_any` is used. Only in that case the compilation should depend on module `cpp`.
2022-01-21 13:32:56 +01:00
8272e4fbd2
Merge pull request #17359 from benpicco/irq_is_in-bool
...
core: change return type of irq_is_in(), irq_is_enabled() to bool
2022-01-06 18:13:20 +01:00
Gunar Schorcht
d6c2926933
pkg/esp32_sdk: add ESP32 SDK without libraries as package
...
The vendor binary libraries of ESP-IDF are provided as a separate GIT repository. These libraries are defined as separate package for two reasons: 1. RIOT packages don't support to clone GIT repositories recursively; 2. ESP-IDF pulls a lot of other GIT repositories that are not needed when it is cloned recursively.
2022-01-04 16:34:31 +01:00
Gunar Schorcht
3492a36cf6
cpu/esp_common: common periph features moved to cpu/esp_common
2021-12-23 10:35:07 +01:00
benpicco
2bb2dc35d2
Merge pull request #17420 from gschorcht/cpu/esp/revert_change_for_esp_wifi_passphrase
...
cpu/esp: revert the change for default definition of ESP_WIFI_PASS
2021-12-20 17:05:45 +01:00
Gunar Schorcht
87a72e4dfe
cpu/esp: revert the change for ESP_WIFI_PASS define
...
Previously, a default value for ESP_WIFI_PASS was intentionally defined only if DOXYGEN was also defined, to allow ESP_WIFI_PASS to be left undefined for using APs without authentication. With PR #17415 the definition was changed to always define a default value for EPS_WIFI_PASS. This made it impossible to use APs without authentication. The commit reverts this change.
2021-12-19 07:39:46 +01:00