Quantcast
Channel: MPLAB XC32
Viewing all articles
Browse latest Browse all 1537

Throwing an error based on a #define value - How? (user2x)

$
0
0
XC32 V2.50I have a seemingly simple problemI need to thrown an error at compile time as in the following:

#define UART2_FrequencyGet() (uint32_t)(25000000UL) //defined by the Harmony system


#if (UART2_FrequencyGet() != (25000000UL))..


Viewing all articles
Browse latest Browse all 1537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>