1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32
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
..
bin cpu/esp32: activate automatic XTAL detection 2020-01-09 15:34:18 +01:00
esp-eth cpu/esp*: fix doxygen grouping warnings 2021-09-11 12:45:15 +02:00
freertos cpu/esp*: move freertos/task to cpu/esp_common 2020-02-21 09:09:34 +01:00
include cpu/esp*: fix doxygen grouping warnings 2021-09-11 12:45:15 +02:00
ld cpu/esp32: place freertos and periph in IRAM 2021-10-30 14:46:57 +02:00
periph cpu/esp32/i2c_hw: assert added for unsupported I2C clock speeds 2021-12-17 17:44:27 +01:00
vendor cpu/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
doc.txt cpu/esp32/i2c_sw: add delays for 2 and 40 MHz 2021-12-16 10:44:53 +01:00
esp32.config cpu/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
esp_xtimer.c cpu/esp32: make CI happy 2021-11-17 13:10:37 +01:00
irq_arch.c cpu/*: reorder ENABLE_DEBUG after last include 2020-10-23 00:45:55 +02:00
Kconfig cpu/esp32/kconfig: move esp_wifi_enterprise feature to esp_common 2021-12-10 18:54:28 +01:00
Makefile cpu/esp32: cleanup of C++ hacks 2020-07-29 10:14:57 +02:00
Makefile.default cpu: make pm_layered a DEFAULT_MODULE 2021-01-27 13:21:20 +01:00
Makefile.dep cpu/esp32: fix esp_jtag dependency 2021-12-10 18:54:27 +01:00
Makefile.features cpu/esp32: refactor esp_spi_ram feature 2021-12-10 18:54:27 +01:00
Makefile.include Merge pull request #17232 from leandrolanzieri/pr/cpu/esp/model_kconfig 2021-12-11 08:53:31 +01:00
startup.c cpu/esp32: make CI happy 2021-11-17 13:10:37 +01:00
syscalls.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00