<commit_before>/*
 * Copyright (C) 2018 <NAME>
 *
 * 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
 * @ingroup     cpu_esp8266
 * @ingroup     config
 * @brief       Compile-time configuration macros for ESP8266 modules
 * @{
 *
 * @file
 * @brief       CPU specific configuration options
 *
 * @author      <NAME> <<EMAIL>>
 */

#ifndef CPU_CONF_H
#define CPU_CONF_H

#include "xtensa_conf.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @name   Stack size configuration
 * @{
 */
#ifdef MODULE_ESP_SDK_INT_HANDLING

#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#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

#ifndef GNRC_PKTDUMP_STACKSIZE
#define GNRC_PKTDUMP_STACKSIZE        (THREAD_STACKSIZE_DEFAULT)
#endif

#ifndef ESP_NOW_STACKSIZE
#define ESP_NOW_STACKSIZE             (2560)
#endif

#ifndef ETS_THREAD_STACKSIZE
#define ETS_THREAD_STACKSIZE          (2048)
#endif

#else /* MODULE_ESP_SDK_INT_HANDLING */

#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#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

#ifndef GNRC_PKTDUMP_STACKSIZE
#define GNRC_PKTDUMP_STACKSIZE        (THREAD_STACKSIZE_DEFAULT)
#endif

#ifndef ESP_NOW_STACKSIZE
#define ESP_NOW_STACKSIZE             (2560)
#endif

#ifndef ETS_THREAD_STACKSIZE
#define ETS_THREAD_STACKSIZE          (1536)
#endif

#endif /* MODULE_ESP_SDK_INT_HANDLING */
/** @} */

/**
 * 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

#endif /* CPU_CONF_H */
/** @} */
<commit_msg>cpu/esp8266: stack sizes tuned for esp_wifi<commit_after>/*
 * Copyright (C) 2018 <NAME>
 *
 * 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
 * @ingroup     cpu_esp8266
 * @ingroup     config
 * @brief       Compile-time configuration macros for ESP8266 modules
 * @{
 *
 * @file
 * @brief       CPU specific configuration options
 *
 * @author      <NAME> <<EMAIL>@schorcht.<EMAIL>>
 */

#ifndef CPU_CONF_H
#define CPU_CONF_H

#include "xtensa_conf.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @name   Stack size configuration
 * @{
 */
#ifdef MODULE_ESP_SDK_INT_HANDLING

#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#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

#ifndef GNRC_IPV6_STACK_SIZE
#define GNRC_IPV6_STACK_SIZE          (1536)
#endif
#ifndef GNRC_PKTDUMP_STACKSIZE
#define GNRC_PKTDUMP_STACKSIZE        (THREAD_STACKSIZE_DEFAULT)
#endif

#ifndef ESP_NOW_STACKSIZE
#define ESP_NOW_STACKSIZE             (2560)
#endif

#ifndef ETS_THREAD_STACKSIZE
#define ETS_THREAD_STACKSIZE          (2048)
#endif

#else /* MODULE_ESP_SDK_INT_HANDLING */

#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#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

#ifndef GNRC_IPV6_STACK_SIZE
#define GNRC_IPV6_STACK_SIZE          (1536)
#endif
#ifndef GNRC_PKTDUMP_STACKSIZE
#define GNRC_PKTDUMP_STACKSIZE        (THREAD_STACKSIZE_DEFAULT)
#endif

#ifndef ESP_NOW_STACKSIZE
#define ESP_NOW_STACKSIZE             (2560)
#endif

#ifndef ETS_THREAD_STACKSIZE
#define ETS_THREAD_STACKSIZE          (1536)
#endif

#endif /* MODULE_ESP_SDK_INT_HANDLING */
/** @} */

/**
 * 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

#endif /* CPU_CONF_H */
/** @} */

{'fraction_non_alphanumeric': 0.08559702950947821, 'fraction_numerical': 0.03283173734610123, 'mean_word_length': 4.3201663201663205, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5424634', 'n_tokens_mistral': 1990, 'n_tokens_neox': 1861, 'n_words': 449}