i have problem with the led blinking. I using the exmaple program given by keil using uVision3. When i run the program, the LED on the development board didnt blink, it just stay on! wat should i do?
thanks!
Yes, I have seen
#define TEN 10
Now that is a real beaut.
I just hope it was from a very bright student who wanted to be a bit cheeky with his teacher.
I once saw some source code where the person didn't realize that decimal and hexadecimal is just different presentations of the same number, and that the C compiler supports hexadecimal constants.
So the code contained:
#define HEX_00 0 ... #define HEX_A0 160 #define HEX_A1 161 ... #define HEX_FF 255
Good to have in case he needed a hexadecimal number and forgot how to translate to decimal :)
Or maybe he had seen one of the binary declarations that exists here and there, and not realized that a header file with:
... BIN_0110_1001 0x69 BIN_0110_1010 0x6a ...
exists just because binary numbers aren't part of the standard language, while the compiler has very good hexadecimal support directly in the language standard.