1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp8266/include/cpu_conf.h

89 lines
1.9 KiB
C
Raw Normal View History

2018-09-05 02:39:50 +02:00
/*
* Copyright (C) 2018 Gunar Schorcht
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup cpu_esp8266_conf ESP8266 compile configurations
2018-09-05 02:39:50 +02:00
* @ingroup cpu_esp8266
* @ingroup config
* @brief Compile-time configuration macros for ESP8266 modules
2018-09-05 02:39:50 +02:00
* @{
*
* @file
* @brief CPU specific configuration options
*
* @author Gunar Schorcht <gunar@schorcht.net>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#include "xtensa_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Stack size configuration
2018-09-05 02:39:50 +02:00
* @{
*/
#ifdef MODULE_ESP_SDK_INT_HANDLING
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
2018-09-05 02:39:50 +02:00
#define THREAD_EXTRA_STACKSIZE_PRINTF (0)
#endif
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (1536)
#endif
#ifndef THREAD_STACKSIZE_IDLE
#define THREAD_STACKSIZE_IDLE (1536)
#endif
#ifndef THREAD_STACKSIZE_MAIN
#define THREAD_STACKSIZE_MAIN (3072)
#endif
#else /* MODULE_ESP_SDK_INT_HANDLING */
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
2018-09-05 02:39:50 +02:00
#define THREAD_EXTRA_STACKSIZE_PRINTF (0)
#endif
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (1024)
#endif
#ifndef THREAD_STACKSIZE_IDLE
#define THREAD_STACKSIZE_IDLE (1024)
#endif
#ifndef THREAD_STACKSIZE_MAIN
#define THREAD_STACKSIZE_MAIN (3072)
#endif
#endif /* MODULE_ESP_SDK_INT_HANDLING */
2018-09-05 02:39:50 +02:00
/** @} */
/**
* Buffer size used for printf functions (maximum length of formatted output).
*/
#define PRINTF_BUFSIZ 256
/* Following include is neccessary to overwrite newlib's PRI*8 and PRI*32. */
/* PLEASE NOTE: ets_vprintf does not understand %i %li, or %hi */
#ifndef DOXYGEN
#include <inttypes.h>
#undef __INT8
#define __INT8
#undef __INT32
#define __INT32
#endif
#ifdef __cplusplus
}
#endif /* CPU_CONF_H */
#endif /* CPU_CONF_H */
/** @} */