1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/boards/common/esp32
Jens Alfke ce1fe776cf cpu/esp32: allow explicit ESP32 crystal freq configuration
Some ESP32 boards (like my SparkFun ESP32 Thing) have a main clock
crystal that runs at 26MHz, not 40MHz. RIOT appears to assume 40MHz.
The mismatch causes the UART to not sync properly, resulting in
garbage written to the terminal instead of log output.

I’ve added:

* A new board configuration constant ESP32_XTAL_FREQ that defaults
  to 40, but can be overridden by a board def or at build time to
  force a specific value (i.e. 26).
* Some code spliced into system_clk_init() to check this constant and
  call rtc_clk_init() to set the correct frequency.
* A copy of the rtf_clk_init() function from the ESP-IDF sources.

Fixes #10272
2018-10-30 16:42:07 -07:00
..
include cpu/esp32: allow explicit ESP32 crystal freq configuration 2018-10-30 16:42:07 -07:00
board_common.c boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
doc.txt boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
Makefile boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
Makefile.dep boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
Makefile.features boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
Makefile.include boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00