Loading...
Searching...
No Matches
sdkconfig_esp32c3.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 Gunar Schorcht
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
22#ifndef SDKCONFIG_ESP32C3_H
23#define SDKCONFIG_ESP32C3_H
24
25#ifndef DOXYGEN
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
36/* Mapping of Kconfig defines to the respective enumeration values */
37#if CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_2
38#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 2
39#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_5
40#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 5
41#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_10
42#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 10
43#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_20
44#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 20
45#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_40
46#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 40
47#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_80
48#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 80
49#elif CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ_160
50#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 160
51#endif
52
56#ifndef CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ
57#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 80
58#endif
64#define CONFIG_ESP32C3_RTC_CLK_CAL_CYCLES (8 * 1024)
65
69#define CONFIG_EFUSE_MAX_BLK_LEN 256
70
74#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_STA 1
75#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_AP 1
76#define CONFIG_ESP_MAC_ADDR_UNIVERSE_BT 1
77#define CONFIG_ESP_MAC_ADDR_UNIVERSE_ETH 1
78#define CONFIG_ESP32C3_UNIVERSAL_MAC_ADDRESSES 4
79
83#define CONFIG_ESP_TIMER_IMPL_SYSTIMER 1
84
85#define CONFIG_ESP32C3_DEBUG_OCDAWARE 1
86#define CONFIG_ESP32C3_REV_MIN 3
87
88#define CONFIG_ESP32C3_BROWNOUT_DET 1
89#define CONFIG_ESP32C3_BROWNOUT_DET_LVL 7
90
94#define CONFIG_ESP_SLEEP_POWER_DOWN_FLASH 1
95#define CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND 1
96
100#define CONFIG_ESP_PHY_ENABLE_USB 1
101
105#ifdef MODULE_ESP_BLE
106#define CONFIG_BT_CTRL_ADV_DUP_FILT_MAX 30
107#define CONFIG_BT_CTRL_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
108#define CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_NUM 100
109#define CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP 1
110#define CONFIG_BT_CTRL_BLE_MAX_ACT 10
111#define CONFIG_BT_CTRL_BLE_MAX_ACT_EFF 10
112#define CONFIG_BT_CTRL_BLE_SCAN_DUPL 1
113#define CONFIG_BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB 0
114#define CONFIG_BT_CTRL_CE_LENGTH_TYPE_EFF 0
115#define CONFIG_BT_CTRL_CE_LENGTH_TYPE_ORIG 1
116#define CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_DIS 1
117#define CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF 0
118#define CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_EFF 10
119#define CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_P3 1
120#define CONFIG_BT_CTRL_HCI_MODE_VHCI 1
121#define CONFIG_BT_CTRL_HCI_TL 1
122#define CONFIG_BT_CTRL_HCI_TL_EFF 1
123#define CONFIG_BT_CTRL_HW_CCA_EFF 0
124#define CONFIG_BT_CTRL_HW_CCA_VAL 20
125#define CONFIG_BT_CTRL_MODE_EFF 1
126#define CONFIG_BT_CTRL_PINNED_TO_CORE 0
127#define CONFIG_BT_CTRL_RX_ANTENNA_INDEX_0 1
128#define CONFIG_BT_CTRL_RX_ANTENNA_INDEX_EFF 0
129#define CONFIG_BT_CTRL_SCAN_DUPL_CACHE_SIZE 100
130#define CONFIG_BT_CTRL_SCAN_DUPL_TYPE 0
131#define CONFIG_BT_CTRL_SCAN_DUPL_TYPE_DEVICE 1
132#define CONFIG_BT_CTRL_SLEEP_CLOCK_EFF 0
133#define CONFIG_BT_CTRL_SLEEP_MODE_EFF 0
134#define CONFIG_BT_CTRL_TX_ANTENNA_INDEX_0 1
135#define CONFIG_BT_CTRL_TX_ANTENNA_INDEX_EFF 0
136#define CONFIG_BT_ENABLED 1
137#define CONFIG_BT_SOC_SUPPORT_5_0 1
138#endif
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* DOXYGEN */
145#endif /* SDKCONFIG_ESP32C3_H */