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 <kevin@koconnor.net>
This commit is contained in:
committed by
KevinOConnor
parent
7eda55e2b0
commit
b28e95ca1a
@@ -14,7 +14,7 @@
|
||||
#include "stm32f1xx_ll_gpio.h" // LL_GPIO_SetPinMode
|
||||
#include "sched.h" // sched_shutdown
|
||||
|
||||
DECL_CONSTANT(ADC_MAX, 4095);
|
||||
DECL_CONSTANT("ADC_MAX", 4095);
|
||||
|
||||
#define ADC_DELAY (240 * 8)
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "stm32f1xx_ll_spi.h"
|
||||
#include "sched.h" // sched_main
|
||||
|
||||
DECL_CONSTANT(MCU, "stm32f103");
|
||||
DECL_CONSTANT_STR("MCU", "stm32f103");
|
||||
|
||||
|
||||
/****************************************************************
|
||||
|
||||
Reference in New Issue
Block a user