I want to define a constant called "mains_on" to be equal to 208, so I write
.equ mains_on,208 @ mains on at 208 Volts
and MUCXpresso underlines it in orange and tells me it is a syntax error. (It is part of a large table of constants that have their own file)
It does this regardless of whether I put it in a file called .h or .inc, but the resulting file works
If I type
#define mains_on 208 // mains on at 208 Volts
like it would be in C, it no longer tells me that it is a syntax error, but it doesn't work.
If I put the file in the src directory instead of the inc directory, then it likes neither .equ nor #define, one gives "syntax error" and the other says "no whitespace after macro definition"
.This isn't a major problem, but it is annoying to have every line of my table of constants underlined in orange and labelled as a syntax error - could someone please tell me which format MCUXpresso is happy with, and where it would prefer the file to be stored.