analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
61 stars 82 forks source link

feat(Build): Add Compiler Flag for Checking Target Micro #911

Closed Jake-Carter closed 7 months ago

Jake-Carter commented 7 months ago

Description

Previous builds defined TARGET=MAXxxxxx, but the pre-processor can't do string comparisons. This PR defines MAXxxxxx to enable checks like

#ifdef MAX32665
...
#endif

Checklist Before Requesting Review