1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu
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
..
arm7_common cpu: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
atmega256rfr2 cpu/atmega256rfr2: configure RAM and ROM length 2018-09-05 12:20:28 +02:00
atmega328p cpu/atmega328p: configure RAM and ROM length 2018-09-05 12:20:26 +02:00
atmega1281 cpu/atmega1281: configure RAM and ROM length 2018-09-05 12:20:23 +02:00
atmega1284p cpu/atmega1284p: configure RAM and ROM length 2018-09-05 12:20:31 +02:00
atmega2560 cpu/atmega2560: configure RAM and ROM length 2018-09-05 12:20:20 +02:00
atmega_common cpu: drivers/eeprom: refactor periph_eeprom implementation 2018-10-16 10:39:10 +02:00
cc26x0 cc26x0: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:10:59 +02:00
cc430 cpu/cc430: remove duplicate include 2018-09-11 16:32:34 +02:00
cc2538 drivers/netdev_ieee802154: drop NETOPT_MAX_PKT_SIZE 2018-10-16 13:28:03 +02:00
cortexm_common cppcheck: add/correct reason for cppcheck-suppress 2018-09-25 12:03:58 +02:00
efm32 Merge pull request #10135 from miri64/cpu/enh/periph-gpio-irq-closing-endif 2018-10-15 13:41:02 +02:00
esp32 cpu/esp32: allow explicit ESP32 crystal freq configuration 2018-10-30 16:42:07 -07:00
esp8266 Merge pull request #10125 from gschorcht/esp8266_cpu_freq 2018-10-19 14:53:45 +02:00
ezr32wg ezr32wg: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
fe310 Merge pull request #10062 from cladmi/pr/make/cpu/fe310/features 2018-10-23 13:28:17 +02:00
kinetis kinetis: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
lm4f120 lm4f120: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
lpc1768 lpc1768: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
lpc2387 lpc2387: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
mips32r2_common cppcheck: add/correct reason for cppcheck-suppress 2018-09-25 12:03:58 +02:00
mips32r2_generic cpu/mips32r2_generic: fix PERIPH_TIMER_PROVIDES_SET 2018-09-07 22:15:51 +02:00
mips_pic32_common cpu/mips_pic32/gpio: remove gpio_init_int stub 2018-09-20 14:50:32 +02:00
mips_pic32mx boards/makefiles: Remove '-Otype' from OFLAGS 2018-04-09 17:32:46 +02:00
mips_pic32mz mips_pic32mz: Tabs to spaces in ldscript 2018-05-09 00:41:27 +02:00
msp430_common cpu/msp430: increase default stacksize for gnrc_ipv6 thread 2018-09-26 11:06:05 +02:00
msp430fxyz msp430fxyz: Disable GPIO ISRs when periph_gpio_irq is not selected 2018-08-29 08:53:20 +02:00
native drivers/netdev_ieee802154: drop NETOPT_MAX_PKT_SIZE 2018-10-16 13:28:03 +02:00
nrf5x_common Merge pull request #10158 from silkeh/fix-nrf5x-gpio 2018-10-17 17:17:46 +02:00
nrf51 cpu/nrf51: fix formatting uint to PRIu32 2018-08-13 17:56:05 +02:00
nrf52 cpu/nrf52: initial PWM implementation 2018-08-21 11:28:23 +02:00
sam0_common sam0_common: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
sam3 sam3: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
sam_common cpu*: fix doxygen grouping 2018-06-11 19:12:02 +02:00
samd21 cpu/samd21: add SRAM based random seed 2018-07-04 17:55:20 +02:00
saml21 cpu/samr30: add support for samr30g18a 2018-10-01 10:15:08 +02:00
stellaris_common cpu/stellaris: Rename Makefile -> Makefile.include 2017-04-04 19:57:12 +02:00
stm32_common cpu: drivers/eeprom: refactor periph_eeprom implementation 2018-10-16 10:39:10 +02:00
stm32f0 cpu/stm32_common: remove inadapted periph_flash_common 2018-10-11 15:20:44 +02:00
stm32f1 Merge pull request #10135 from miri64/cpu/enh/periph-gpio-irq-closing-endif 2018-10-15 13:41:02 +02:00
stm32f2 cpu/stm32_common: split common i2c periph in 2 2018-07-25 12:01:36 +02:00
stm32f3 cpu/stm32{f0,f3,f7,l0,l4}: unify i2c driver and use new API 2018-07-25 12:01:35 +02:00
stm32f4 Merge pull request #9505 from PeterKietzmann/pr_puf_stm32 2018-08-17 13:08:21 +02:00
stm32f7 cpu/stm32f7: remove conflicting enum from vendor header 2018-07-10 15:37:59 +02:00
stm32l0 cpu/stm32_common: remove inadapted periph_flash_common 2018-10-11 15:20:44 +02:00
stm32l1 cpu/stm32_common: remove inadapted periph_flash_common 2018-10-11 15:20:44 +02:00
stm32l4 cpu/stm32_common: remove inadapted periph_flash_common 2018-10-11 15:20:44 +02:00
doc.txt cpu: doc typos 2017-01-20 13:36:26 +01:00