1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32/vendor
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
..
esp cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00
esp-idf cpu/esp32: allow explicit ESP32 crystal freq configuration 2018-10-30 16:42:07 -07:00
xtensa cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00
Makefile cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00
README.md cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00

The subdirectories here contain third-party software components used by the RIOT port for ESP32.

esp

The files that are part of esp-open-rtos. The files in this directory are under the copyright of their respective owners. Please note the copyright notice in these files. All of these files are BSD Licensed as described in the file LICENSE.

esp-idf

The files in this directory and all subdirectories are from the Espressif IoT Development FrameworkESP-IDF, the official development framework for ESP32. All of these files are copyright of Espressif Systems (Shanghai) PTE LTD or their respective owners and licensed under the Apache License, Version 2.0. Please refer the copyright notice in these files for details.

xtensa

The files in this directory are from the FreeRTOS port for Xtensa configurable processors and Diamond processors. All of these files are copyright of Cadence Design Systems Inc. and licensed under the MIT license.