benpicco
bafb7d53c5
Merge pull request #18326 from gschorcht/cpu/esp32/use_variant_specific_adc_and_gpio
...
cpu/esp32: extend file names of CPU specific files by CPU family
2022-07-19 15:13:44 +02:00
benpicco
e1bc1767af
Merge pull request #18260 from gschorcht/cpu/esp32/add_riscv_platform_code
...
cpu/esp32: add platform code for RISC-V based ESP32x SoCs
2022-07-18 17:43:02 +02:00
Gunar Schorcht
5f45ca5a2a
cpu/esp32: extend file names of CPU specific files by CPU family
...
To allow the compilation of different ESP32x SoC variants, the file names of ESP32 specific periph/adc_arch.c and periph/gpio_arch.c are extended by the ESP32x SoC family.
2022-07-18 17:08:34 +02:00
benpicco
263b918d7c
Merge pull request #18316 from gschorcht/cpu/esp32/use_cpu_fam
...
cpu/esp32: use CPU_FAM and CPU_ARCH for ESP32x SoC variant dependent compilation
2022-07-18 15:43:59 +02:00
Gunar Schorcht
b59f8b59da
cpu/esp32: platform-independent formatting in DEBUG
2022-07-18 13:51:33 +02:00
Gunar Schorcht
ff8baaae79
cpu/esp32: use CPU_FAM_* instead of MCU_*
...
To support ESP32x families with the existing implementation, CPU_FAM_* is used instead of MCU_* in source code.
2022-07-18 13:05:21 +02:00
Gunar Schorcht
14fd3735a2
cpu/esp32: move ESP32 specific Kconfigs to ESP32 submenu
2022-07-18 09:52:26 +02:00
benpicco
365fbed906
Merge pull request #18279 from gschorcht/cpu/esp32/periph_hal_esp32_i2c
...
cpu/esp32: use ESP-IDF i2c HAL for ESP32 periph/i2c
2022-07-17 22:24:54 +02:00
benpicco
2c9f338791
Merge pull request #18271 from gschorcht/periph_hal_esp32_adc
...
cpu/esp32: use ESP-IDF adc/dac HAL for periph/adc and periph/dac
2022-07-17 20:06:09 +02:00
Gunar Schorcht
c0becd2819
cpu/esp32: port periph/i2c_hw to ESP-IDF i2c HAL
2022-07-17 18:48:23 +02:00
Gunar Schorcht
43d2340eea
cpu/esp32: port periph/dac to ESP-IDF dac API
2022-07-17 17:16:49 +02:00
Gunar Schorcht
11c9703675
cpu/esp32: port periph/adc to ESP-IDF interface API
2022-07-17 17:16:49 +02:00
benpicco
6ba048f80c
Merge pull request #18280 from gschorcht/cpu/esp32/periph_hal_esp32_pm
...
cpu/esp32: use ESP-IDF sleep API for periph/pm
2022-07-17 14:17:51 +02:00
Gunar Schorcht
a74a19e9f9
cpu/esp32: port periph/pm to ESP-IDF sleep API
2022-07-15 16:33:16 +02:00
benpicco
dd806ce72e
Merge pull request #18270 from gschorcht/cpu/esp32/periph_hal_esp32_gpio
...
cpu/esp32: use ESP-IDF gpio HAL for periph/gpio
2022-07-15 15:44:13 +02:00
benpicco
295f4a5b04
Merge pull request #18281 from gschorcht/cpu/esp32/periph_hal_esp32_spi
...
cpu/esp32: use ESP-IDF spi HAL for periph/spi
2022-07-15 13:25:50 +02:00
benpicco
0c56e28fe1
Merge pull request #18282 from gschorcht/cpu/esp32/periph_hal_esp32_periph_timer
...
cpu/esp32: use ESP-IDF timer/interrupt HAL for periph/timer
2022-07-15 11:07:37 +02:00
Gunar Schorcht
d6eef52766
cpu/esp32: port periph/gpio to ESP-IDF gpio HAL
2022-07-15 11:03:32 +02:00
benpicco
de5472c76a
Merge pull request #18278 from gschorcht/cpu/esp32/periph_hal_esp32_can
...
cpu/esp32: use to ESP-IDF twai HAL for periph/can
2022-07-15 10:58:33 +02:00
Gunar Schorcht
9142edce03
cpu/esp32: port periph/spi to ESP-IDF spi LL API
2022-07-15 08:57:31 +02:00
Gunar Schorcht
3fd7e1ab17
cpu/esp32: port periph/timer to ESP-IDF interface API
2022-07-15 06:40:04 +02:00
benpicco
94e9116c04
Merge pull request #18276 from gschorcht/cpu/esp32/periph_hal_esp32_pwm
...
cpu/esp32: use ESP-IDF ledc HAL for periph/pwm
2022-07-14 18:09:01 +02:00
Gunar Schorcht
fccd3821dd
cpu/esp32: port periph/can to ESP-IDF twai HAL
2022-07-14 15:51:47 +02:00
Gunar Schorcht
2ae2facf90
cpu/esp32: port periph/pwm to ESP-IDF ledc HAL
2022-07-14 15:50:47 +02:00
benpicco
ba37e93bd6
Merge pull request #18267 from gschorcht/cpu/esp32/periph_hal_esp32_timer
...
cpu/esp32: use ESP-IDF timer HAL for system timer and watchdog
2022-07-10 23:08:57 +02:00
Marian Buschsieweke
d337997e5a
Merge pull request #18277 from gschorcht/cpu/esp/periph_hal_esp32_hwrng
...
cpu/esp_common: use ESP-IDF random API for ESP32
2022-07-04 19:02:58 +02:00
Gunar Schorcht
02310b1148
cpu/esp_common: port periph/hwrng to ESP-IDF random API
2022-06-30 11:10:02 +02:00
Gunar Schorcht
ae48cfca33
cpu/esp32: port periph/rtt_hw_sys to ESP-IDF timer HAL
2022-06-29 08:37:43 +02:00
Gunar Schorcht
5261a930bb
cpu/esp32: port periph/rtt_hw_rtc to ESP-IDF interrupt HAL
2022-06-29 08:37:43 +02:00
benpicco
3b3c6d34b3
Merge pull request #18273 from gschorcht/cpu/esp32/periph_hal_esp32_cpuid
...
cpu/esp32: use ESP-IDF function esp_efuse_mac for CPU ID
2022-06-29 00:40:02 +02:00
Gunar Schorcht
9065dcff14
cpu/esp32: port periph/cpu_id to ESP-IDF read_mac
2022-06-28 16:09:03 +02:00
Gunar Schorcht
4be0abf41a
cpu/esp32: rename CPU_INUM_RTC to CPU_INUM_RTT
2022-06-28 07:30:59 +02:00
Gunar Schorcht
1f25ac8893
cpu/esp32: ESP32 variant independent makefiles
2022-06-23 13:19:40 +02:00
Gunar Schorcht
0622d45949
cpu/esp32: fix pm_reboot function
2022-06-16 13:40:08 +02:00
Gunar Schorcht
587e007a31
ecp/esp32: changes in periph_can for ESP-IDF v4.4
2022-06-01 13:31:00 +02:00
Gunar Schorcht
d7382ab063
cpu/esp32: fix compilation problems with ESP-IDF v4.4
2022-06-01 13:27:31 +02:00
Gunar Schorcht
2541587eee
cpu/esp32: small fix in comment of periph/timer
2022-06-01 13:27:31 +02:00
Gunar Schorcht
48567c8ce0
cpu/esp32: small cleanup in periph/pwm
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
Francisco Molina
c1238ad4e4
cpu/esp: model missing modules
2022-02-09 16:50:04 +01:00
Gunar Schorcht
e15e18b195
cpu/esp32: fix compilation errors
2022-01-25 00:36:51 +01:00
2c3e077bca
Merge pull request #17413 from gschorcht/cpu/esp32/support_clocks_2_and_40_MHz
...
cpu/esp32: support CPU clocks 2 MHz and 40 MHz
2021-12-18 21:58:34 +01:00
Gunar Schorcht
470208e685
cpu/esp32/i2c_hw: assert added for unsupported I2C clock speeds
...
The former correction factors were determined by measuring the resulting clocks without a device connected to the bus.
However, when testing the changes for low CPU clock frequencies, it was figured out that the clocks not only depend on configured register values
_i2c_hw[dev].regs->scl_low_period.period
_i2c_hw[dev].regs->scl_high_period.period
but also on the bus capacity. Obviously, the register values are not absolute times in APB clock cycles, but rather times that start as soon as the corresponding level is reached. In this case, the higher the bus capacity, the longer the period would be.
This means that the clock speed cannot be precisely controlled via the correction factors anyway. For this reason, and because the I2C implementation in ESP-IDF also does not use correction factors, they were removed.
2021-12-17 17:44:27 +01:00
Francisco Molina
4e6151bd7d
cpu/esp*: migrate from xtimer to ztimer
2021-12-14 18:14:35 +01:00
Gunar Schorcht
85313ccc02
Merge pull request #17232 from leandrolanzieri/pr/cpu/esp/model_kconfig
...
cpu/esp{32,8266}: model kconfig
2021-12-11 08:53:31 +01:00
benpicco
13f03ad161
Merge pull request #17314 from gschorcht/boards/esp/compile_optional_modules
...
cpu/esp: compile optional modules in CI
2021-12-10 19:28:24 +01:00
Leandro Lanzieri
bfdfbb1a48
cpu/esp32: model Kconfig
2021-12-10 18:54:07 +01:00
Marian Buschsieweke
d59d9c27d7
cpu/esp32/periph_can: use container_of()
...
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Gunar Schorcht
7da115f9e6
cpu/esp32: fix esp_hw_counter
compile problem
2021-12-02 06:17:48 +01:00
Gunar Schorcht
007e29ebb5
cpu/periph/i2c: update implementations to new I2C API
...
Make all `spi_acquire` implementations return `void` and add assertions to check for valid device identifier where missing.
2021-11-29 06:35:25 +01:00