ESP32-C2 ROM prints at 74880bps (same as ESP8266), so need a newline before first MicroPython output to avoid it being appended on end of a line of noise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
17 lines
452 B
Text
17 lines
452 B
Text
#
|
|
# Main XTAL Config
|
|
#
|
|
CONFIG_XTAL_FREQ_26=y
|
|
# CONFIG_XTAL_FREQ_40 is not set
|
|
CONFIG_XTAL_FREQ=26
|
|
|
|
# When using 26MHz crystal the baud rate defaults to 74880,
|
|
# same as ESP8266 - MicroPython uses 115200, so switch early
|
|
CONFIG_ESP_CONSOLE_UART_CUSTOM=y
|
|
CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
|
|
|
|
# Increase NimBLE stack size for functional BT
|
|
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=5120
|
|
|
|
# Decrease mDNS stack size to save RAM
|
|
CONFIG_MDNS_TASK_STACK_SIZE=3072
|