2008-06-10 08:15 PM
2011-05-17 12:53 AM
Hello,
I work with an ARM9 and with KeilµVision. I use for my projet the ST library and the function debug() in the file 91x_lib.c. The function debug() it is use for initialised the pointer of the peripheral.But I don't understand why this function is use because if I don't select the mode debug, the pointer are initilised on the file 91x_map.h. That are the advantage of this function? So if someone as a idea of this subject I will be :D !! Thinks2011-05-17 12:53 AM
The difference is that in one case, the pointers are variables and in the other, they are constants. When they are variables, they are easier to view in a watch window than when they are constants (you can't easily add a constant pointer to the watch window). However, there is a performance penalty for using variables.
2011-05-17 12:53 AM
Thinks for the response !!