I'm writing some code to be included in a library that will use Portenta specific variations when compiling for the Portenta.
Currently, I'm using the following to detect if I'm running on a Portenta (just the M4 core at the moment). I guess I can expand that to include the M7 core too. But it seems a bit too broad in that it could pickup other boards too.
#if defined(CORE_CM4)
Is there a better define I can use to detect the Portenta?