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:
Kevin O'Connor 2019-03-04 23:35:11 -05:00 committed by KevinOConnor
parent 7eda55e2b0
commit b28e95ca1a
29 changed files with 33 additions and 33 deletions

View file

@ -36,7 +36,7 @@ static const uint8_t adc_pins[] PROGMEM = {
enum { ADMUX_DEFAULT = 0x40 };
enum { ADC_ENABLE = (1<<ADPS0)|(1<<ADPS1)|(1<<ADPS2)|(1<<ADEN)|(1<<ADIF) };
DECL_CONSTANT(ADC_MAX, 1023);
DECL_CONSTANT("ADC_MAX", 1023);
struct gpio_adc
gpio_adc_setup(uint8_t pin)