From 22df1ed2abc383e81f48c868d4625e1cd01fca7a Mon Sep 17 00:00:00 2001 From: Kerogit Date: Fri, 2 May 2025 15:24:58 +0200 Subject: [PATCH] tools: add permitted mixed case suffixes to nxstyle Newer AVR chips (DA/DB family) use mixed-case constants in header file defining constants for I/O register values (provided by manufacturer.) Based on mailing list discussion, this patch adds some of the lowercase suffixes used (the less prevalent constants are then redefined in NuttX.) --- tools/nxstyle.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 8179921c44..9a597d2a14 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -223,6 +223,14 @@ static const char *g_white_suffix[] = "kHz", "kbps", "us", + + /* Ref: arch/avr/src/avrdx/avrdx_serial.c (and others + * in arch/avr/src/avrdx.) I/O register constants + * for AVR DA/DB chips. + */ + + "bm", + "bp", NULL }; @@ -1123,7 +1131,7 @@ int main(int argc, char **argv, char **envp) { FILE *instream; /* File input stream */ char line[LINE_SIZE]; /* The current line being examined */ - char buffer[100]; /* Localy format error strings */ + char buffer[100]; /* Locally format error strings */ char *lptr; /* Temporary pointer into line[] */ char *ext; /* Temporary file extension */ bool btabs; /* True: TAB characters found on the line */