The reason I changed vector 119 is because the pit0 irq is number 55 and 55+64=119. When I compile this, I get error!
error- unknown identifier in vectors.s!!
The identifier is the EXACT SAME as my interrupt function!!!!! How can this happen? I am very frustrated with freescale right now. I have used many products and have never had such an issue getting an interrupt to work!
it also seems as if you may be writing your code incorrectly. your 'ors' should be '|' rather than '||', as the latter is a boolean operation...be careful with those, as you are assigning a 1 to many things!
The file 'vectors.s' is an assembler file, so it knows nothing about the interrupt handler in your C code.
You need to add the following declaration to the start of vectors.s:
Note that there is a leading underscore '_' character there. This is because the C compiler always adds an underscore to the name of any C function; to get the assembler to match, you need to add the underscore explicitly.