Accessing Assembly Constants in C Preprocessor | Cypress Semiconductor
Accessing Assembly Constants in C Preprocessor
My firmware is mainly written in assembly with some c-functions included. To have several similiar products covered I use conditional source in assembly.
Now I need to use on condition as well in assembly as in C, using the precompiler.But, it seems impossible to use a constant defined by "equ" in assembly in C-Code.
Is there a way to do that, or do I have to define the constant a second time in C-code using "#define"?
Thanks for any hints!