/*
 * ESP32 IncludeMcuLibConfig
 *
 * Author: Erich Styger
 * License: PDX-License-Identifier: BSD-3-Clause
 */

#ifndef MCULIB_CONFIG_CONFIG_H_
#define MCULIB_CONFIG_CONFIG_H_

/* -------------- Core and McuLib general settings -------------------------- */
#define McuLib_CONFIG_CPU_IS_ARM_CORTEX_M   (0)  /* ESP32 is detected automatically */

/* -------------- FreeRTOS and McuRTOS settings -------------------------- */
#define configHEAP_SCHEME_IDENTIFICATION    (0)  /* ESP-IDF RTOS used */

/* -------------- McuShell settings -------------------------- */
#define McuShell_CONFIG_PROJECT_NAME_STRING  "ESP32 Shell"
#define McuShell_CONFIG_ECHO_ENABLED         (1)
#define McuShell_CONFIG_PROMPT_STRING        "ESP32> "
#define McuShell_CONFIG_MULTI_CMD_ENABLED    (1)
#define McuShell_CONFIG_MULTI_CMD_SIZE       (96)

/* -------------- McuCriticalSections settings -------------------------- */
#define McuCriticalSection_CONFIG_USE_RTOS_CRITICAL_SECTION  (1)

/* -------------- McuTimeDate settings -------------------------- */
#define McuTimeDate_CONFIG_TICK_TIME_MS    (10)
/* -------------------------------------------------*/
/* McuLog */
#define McuLog_CONFIG_IS_ENABLED                      (1)
#define McuLog_CONFIG_DEFAULT_LEVEL                   (McuLog_DEBUG)
#define McuLog_CONFIG_USE_COLOR                       (1)
#define McuLog_CONFIG_NOF_CONSOLE_LOGGER              (1)
#define McuLog_CONFIG_LOG_TIMESTAMP_DATE              (1)
#define McuLog_CONFIG_USE_RTT_DATA_LOGGER             (0)
#define McuLog_CONFIG_RTT_DATA_LOGGER_BUFFER_SIZE     (128)
/* -------------------------------------------------*/
/* McuUART485 */
#define McuUart485_CONFIG_USE_RS_485                  (1)

#endif /* MCULIB_CONFIG_CONFIG_H_ */
