Loading...
Searching...
No Matches
sdkconfig.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 iosabi
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
25
26#if !DOXYGEN
27
28#include "riotbuild.h"
29
30#include "esp8266_idf_version.h"
31#include "sdkconfig_default.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#if MODULE_ESP_LOG_COLORED
38#define CONFIG_LOG_COLORS 1
39#endif
40
41#ifndef CONFIG_LOG_BOOTLOADER_LEVEL
42/*
43 * SDK Log levels:
44 *
45 * 0 = NONE
46 * 1 = ERROR
47 * 2 = WARN
48 * 3 = INFO
49 * 4 = DEBUG
50 * 5 = VERBOSE
51 */
52#if MODULE_ESP_LOG_STARTUP
53#define CONFIG_LOG_BOOTLOADER_LEVEL 3 /* INFO */
54#else
55#define CONFIG_LOG_BOOTLOADER_LEVEL 0 /* NONE */
56#endif
57#endif
58
59/*
60 * Bootloader output baudrate, defined by the app settings as BAUD or
61 * BOOTLOADER_BAUD.
62 */
63#ifndef CONFIG_CONSOLE_UART_BAUDRATE
64#define CONFIG_CONSOLE_UART_BAUDRATE (RIOT_BOOTLOADER_BAUD)
65#endif
66
67/*
68 * The makefile FLASH_SIZE value is set in MB, but set as bytes to
69 * CONFIG_SPI_FLASH_SIZE.
70 */
71#ifndef CONFIG_SPI_FLASH_SIZE
72#define CONFIG_SPI_FLASH_SIZE ((RIOT_FLASH_SIZE) * 1024 * 1024)
73#endif
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* !DOXYGEN */