Commit 11ebc865 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

defines added to disable compiler version/optimization checks and don't add...

defines added to disable compiler version/optimization checks and don't add timestamp to debug log by default on flocklab
parent 23c00609
......@@ -32,7 +32,7 @@
#define FLOCKLAB_FLOCKLAB_H_
#ifndef FLOCKLAB
#define FLOCKLAB 0
#define FLOCKLAB 0
#endif /* FLOCKLAB */
extern volatile uint16_t FLOCKLAB_NODE_ID;
......@@ -44,19 +44,26 @@ extern volatile uint16_t FLOCKLAB_NODE_ID;
#define NODE_ID FLOCKLAB_NODE_ID
#endif /* NODE_ID */
/* disable SWD pins (instead, use them for tracing) */
#ifndef FLOCKLAB_SWD
#define FLOCKLAB_SWD 0
#define FLOCKLAB_SWD 0
#endif /* FLOCKLAB_SWD */
/* don't use signal pin interrupt */
#ifndef FLOCKLAB_SIG_INT
#define FLOCKLAB_SIG_INT 0 /* enable SIG1 pin interrupt? */
#define FLOCKLAB_SIG_INT 0
#endif /* FLOCKLAB_SIG_INT */
/* don't print color codes */
/* debug log: don't print color codes */
#ifndef LOG_USE_COLORS
#define LOG_USE_COLORS 0
#define LOG_USE_COLORS 0
#endif /* LOG_USE_COLORS */
/* debug log: don't print a timestamp */
#ifndef LOG_ADD_TIMESTAMP
#define LOG_ADD_TIMESTAMP 0
#endif
/* error check */
#if BOLT_ENABLE
/* SWO cannot be used at the moment since the pin is connected to the DIO1 of the SX1262 radio */
......
......@@ -88,11 +88,11 @@
/* --- global error checks --- */
#ifndef __OPTIMIZE__
#if !defined(__OPTIMIZE__) && (!defined(FLORA_COMPILER_OPT_CHECK) || (FLORA_COMPILER_OPT_CHECK != 0))
#error "Compiler optimizations have to be enabled! Recommended setting is -O2."
#endif
#if __GNUC__ != 7
#if (__GNUC__ != 7) && (!defined(FLORA_COMPILER_VER_CHECK) || (FLORA_COMPILER_VER_CHECK != 0))
#warning "Compiler version has changed."
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment