1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32/include/cpu_conf.h
Gunar Schorcht fb47f094d3 cpu/esp32: support multiple heaps for newlib
Several unsused DRAM sections are added to the heap.
2020-07-10 08:42:12 +02:00

65 lines
1.3 KiB
C

/*
* 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_esp32_conf ESP32 compile configurations
* @ingroup cpu_esp32
* @ingroup config
* @brief Compile-time configuration macros for ESP32 modules
* @{
*
* @file
* @brief CPU specific configuration options
*
* @author Gunar Schorcht <gunar@schorcht.net>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#include <stdint.h>
#include "cpu_conf_common.h"
#include "esp_common_log.h"
#include "xtensa_conf.h"
#include "xtensa/xtensa_context.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Stack size configuration
* @{
*/
#define THREAD_EXTRA_STACKSIZE_PRINTF (1024)
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (2048)
#endif
#ifndef THREAD_STACKSIZE_IDLE
#define THREAD_STACKSIZE_IDLE (2048)
#endif
/** @} */
/**
* Buffer size used for printf functions (maximum length of formatted output).
*/
#define PRINTF_BUFSIZ 256
/**
* @brief Remaining parts of the various DRAM sections can be used as heap.
*/
#define NUM_HEAPS (4)
#ifdef __cplusplus
}
#endif
#endif /* CPU_CONF_H */
/** @} */