i am having problem in type casting for lpc2129 please can any one give me an example of type casting which works,,,
Another thing - please use a bit modern language style.
Write "void func_foo(unsigned long kk) { ... }" instead of just "func_foo(unsigned long kk) { ... }" if the function doesn't have a return value. If you don't give a data type, it does not mean a function without a return value. It means a function returning "int". Always be explicit and give full type definitions, so avoid the default fallback to "int".
In C, "void" is the data type to specify for a function that doesn't return anything, and "void" is the parameter list to use for a function that doesn't take any parameters.