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.)
This commit is contained in:
Kerogit 2025-05-02 15:24:58 +02:00 committed by Xiang Xiao
parent 492ea844ef
commit 22df1ed2ab

View file

@ -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 */