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
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?