cpu_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "cpu_conf_common.h"
22 #include "xtensa_conf.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33 #ifndef DOXYGEN
34 /* Mapping of Kconfig defines to the respective enumeration values */
35 #if CONFIG_ESP8266_CPU_FREQUENCY_80
36 #define ESP8266_CPU_FREQUENCY 80
37 #elif CONFIG_ESP8266_CPU_FREQUENCY_160
38 #define ESP8266_CPU_FREQUENCY 160
39 #endif
40 #endif
41 
47 #ifndef ESP8266_CPU_FREQUENCY
48 #define ESP8266_CPU_FREQUENCY (80)
49 #endif
50 
54 #define CLOCK_CORECLOCK (1000000UL * ESP8266_CPU_FREQUENCY)
61 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
62 #define THREAD_EXTRA_STACKSIZE_PRINTF (0)
63 #endif
64 
65 #ifndef THREAD_STACKSIZE_DEFAULT
66 #define THREAD_STACKSIZE_DEFAULT (1024)
67 #endif
68 
69 #ifndef THREAD_STACKSIZE_IDLE
70 #define THREAD_STACKSIZE_IDLE (1024)
71 #endif
72 
73 #ifndef THREAD_STACKSIZE_MAIN
74 #define THREAD_STACKSIZE_MAIN (3072)
75 #endif
76 
77 #ifndef THREAD_STACKSIZE_SMALL
78 #define THREAD_STACKSIZE_SMALL (THREAD_STACKSIZE_MEDIUM * 3 / 2)
79 #endif
80 
81 #ifndef THREAD_STACKSIZE_TINY
82 #define THREAD_STACKSIZE_TINY (THREAD_STACKSIZE_MEDIUM / 2)
83 #endif
84 
85 #ifndef GNRC_IPV6_STACK_SIZE
86 #define GNRC_IPV6_STACK_SIZE (1536)
87 #endif
88 #ifndef GNRC_PKTDUMP_STACKSIZE
89 #define GNRC_PKTDUMP_STACKSIZE (THREAD_STACKSIZE_DEFAULT << 1)
90 #endif
91 
92 #ifndef ESP_NOW_STACKSIZE
93 #define ESP_NOW_STACKSIZE (2560)
94 #endif
95 
96 #ifndef TCPIP_THREAD_STACKSIZE
97 #define TCPIP_THREAD_STACKSIZE (3072)
98 #endif
99 
100 #ifndef ESP_WIFI_STACKSIZE
102 #define ESP_WIFI_STACKSIZE (1536)
103 #endif
104 
110 #define PRINTF_BUFSIZ 256
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
Xtensa ASM code specific configuration options for ESP SoCs.