Skip to content

Commit

Permalink
Wrap config defines
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jun 14, 2024
1 parent ea545cc commit 92c8b65
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions include/config.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
#pragma once

#include "user_config.h"

#ifndef ENABLE_LOG_GDB
#define ENABLE_LOG_GDB 0
#endif

#ifndef ENABLE_LOG_CPU_EXCEPTIONS
#define ENABLE_LOG_CPU_EXCEPTIONS 0
#endif

#ifndef ENABLE_LOG_CPU_INSTRUCTIONS
#define ENABLE_LOG_CPU_INSTRUCTIONS 0
#endif

#ifndef ENABLE_LOG_CPU_IT
#define ENABLE_LOG_CPU_IT 0
#endif

#ifndef ENABLE_LOG_SEGGER_RTT
#define ENABLE_LOG_SEGGER_RTT 1
#endif

#ifndef ENABLE_LOG_SPI_FLASH
#define ENABLE_LOG_SPI_FLASH 0
#endif

#ifndef ENABLE_LOG_BMA425
#define ENABLE_LOG_BMA425 0
#endif

#ifndef ENABLE_SEGGER_RTT
#define ENABLE_SEGGER_RTT 1
#endif

#ifndef ENABLE_MEASUREMENT
#define ENABLE_MEASUREMENT 0
#endif

#ifndef ABORT_ON_INVALID_MEM_ACCESS
#define ABORT_ON_INVALID_MEM_ACCESS 1
#endif

#ifndef ASSERT_EXCEPTION_REGISTERS
#define ASSERT_EXCEPTION_REGISTERS 0

#include "user_config.h"
#endif

#if WASM
#ifdef ENABLE_SEGGER_RTT
Expand Down

0 comments on commit 92c8b65

Please sign in to comment.