diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-03-04 23:35:11 -0500 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-03-17 19:38:18 -0400 |
commit | b28e95ca1aa2860c0869041c29a3ba27054e5967 (patch) | |
tree | b507c6a45c52fff68a449f20213d39b6bc8e4a29 /src/generic/serial_irq.c | |
parent | 7eda55e2b042566020ade34d7b2cdb9296f37f1d (diff) | |
download | kutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.tar.gz kutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.tar.xz kutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.zip |
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>
Diffstat (limited to 'src/generic/serial_irq.c')
-rw-r--r-- | src/generic/serial_irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generic/serial_irq.c b/src/generic/serial_irq.c index 76304323..c2b23864 100644 --- a/src/generic/serial_irq.c +++ b/src/generic/serial_irq.c @@ -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 |