summaryrefslogtreecommitdiff
path: root/src/cc1111
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-22 15:43:07 -0500
committerKeith Packard <keithp@keithp.com>2017-10-22 15:43:07 -0500
commit256ddea8c430b4b5dcb8bb95c19ad26032129e1b (patch)
tree2eb66a36a7c0c98a5d900ded4c94c6a56242c968 /src/cc1111
parent15af16ad21f67019065763a93d52cea6097a69d1 (diff)
altos: Define AO_LOG_FORMAT in */ao_pins.h. Use in ao_cmd.c
Instead of having a global variable define the log format, use a macro instead to save data space. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-rw-r--r--src/cc1111/ao_pins.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cc1111/ao_pins.h b/src/cc1111/ao_pins.h
index 10b1f802..9d6e1c1d 100644
--- a/src/cc1111/ao_pins.h
+++ b/src/cc1111/ao_pins.h
@@ -63,6 +63,7 @@
#define HAS_RADIO_RATE 0 /* not enough space for this */
#define HAS_MUTEX_TRY 0
#define HAS_TASK_INFO 0 /* not enough space for this either */
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_FULL
#endif
#if defined(TELEMETRUM_V_1_1)
@@ -106,6 +107,7 @@
#define HAS_TELEMETRY 1
#define HAS_RADIO_RATE 0 /* not enough space for this */
#define HAS_MUTEX_TRY 0
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_FULL
#endif
#if defined(TELEMETRUM_V_1_2)
@@ -149,6 +151,7 @@
#define HAS_TELEMETRY 1
#define HAS_RADIO_RATE 0 /* not enough space for this */
#define HAS_MUTEX_TRY 0
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_FULL
#endif
#if defined(TELEDONGLE_V_0_2)
@@ -210,6 +213,7 @@
#define HAS_MONITOR 0
#define HAS_TELEMETRY 1
#define HAS_RADIO_RATE 0 /* not enough space for this */
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_TINY
#endif
#if defined(TELENANO_V_0_1)
@@ -274,6 +278,7 @@
#define HAS_TELEMETRY 1
#define HAS_RADIO_RATE 0 /* not enough space for this */
#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX ((uint32_t) 127 * (uint32_t) 1024)
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_FULL
#endif
#if defined(TELEDONGLE_V_0_1)