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