Macros that Take in Parameters | Cypress Semiconductor
Support & Community
Macros that Take in Parameters
How do I use macros that take in parameters?
Here is an example using the M8C_EnableIntMask macro. It takes two parameters. INT_MSK0 and INT_MSK0_GPIO are constants defined as E0h and 20h respectively.
M8C_EnableIntMask INT_MSK0, INT_MSK0_GPIO