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
@@ -19,8 +19,8 @@
|
||||
static uint8_t receive_buf[RX_BUFFER_SIZE], receive_pos;
|
||||
static uint8_t transmit_buf[96], transmit_pos, transmit_max;
|
||||
|
||||
DECL_CONSTANT(SERIAL_BAUD, CONFIG_SERIAL_BAUD);
|
||||
DECL_CONSTANT(RECEIVE_WINDOW, RX_BUFFER_SIZE);
|
||||
DECL_CONSTANT("SERIAL_BAUD", CONFIG_SERIAL_BAUD);
|
||||
DECL_CONSTANT("RECEIVE_WINDOW", RX_BUFFER_SIZE);
|
||||
|
||||
// Rx interrupt - store read data
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user