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
@@ -23,7 +23,7 @@ static const uint8_t adc_pin_funcs[] = {
|
||||
};
|
||||
|
||||
#define ADC_FREQ_MAX 13000000
|
||||
DECL_CONSTANT(ADC_MAX, 4095);
|
||||
DECL_CONSTANT("ADC_MAX", 4095);
|
||||
|
||||
// The lpc176x adc is extremely noisy. Implement a 5 entry median
|
||||
// filter to weed out obviously incorrect readings.
|
||||
|
||||
Reference in New Issue
Block a user