From b28e95ca1aa2860c0869041c29a3ba27054e5967 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 4 Mar 2019 23:35:11 -0500 Subject: command: Always pass a string to the DECL_CONSTANT() macro Make it clear that the name of the constant being defined is a string. When the value being defined is also a string, use a new DECL_CONSTANT_STR() macro. Signed-off-by: Kevin O'Connor --- src/pru/adc.c | 2 +- src/pru/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pru') diff --git a/src/pru/adc.c b/src/pru/adc.c index 62aca60a..81ec7fe3 100644 --- a/src/pru/adc.c +++ b/src/pru/adc.c @@ -16,7 +16,7 @@ * Analog to Digital Converter (ADC) pins ****************************************************************/ -DECL_CONSTANT(ADC_MAX, 4095); +DECL_CONSTANT("ADC_MAX", 4095); static void adc_full_reset(void) diff --git a/src/pru/main.c b/src/pru/main.c index 6019d087..88e622a6 100644 --- a/src/pru/main.c +++ b/src/pru/main.c @@ -17,7 +17,7 @@ #include "internal.h" // SHARED_MEM #include "sched.h" // sched_main -DECL_CONSTANT(MCU, "pru"); +DECL_CONSTANT_STR("MCU", "pru"); /**************************************************************** -- cgit v1.2.3-70-g09d2