We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
How make preprocessor error? #error - not work in keil 4.12 (ARM)
#ifdef IO16_A CPU_CLOCK = 50; #elif IO16_B CPU_CLOCK = 25; #elif IO16_C CPU_CLOCK = 8; #else
#error "No select device type!"
#endif
That'll be because it's not valid 'C' syntax!
Did you copy & paste the exact text from your source code?
And still using the old and deprecated #ifdef instead of the newer #if defined(xx) and mixing it with the completely different #if - haven't you figured out that #if and #ifdef does not do the same thing?