This is the function 'chip_TIMER_Init' in LPCOpen. As we can see, the switch-case statement seem to be expected to add 'break' as the end of one case. Otherwise, the timer0 will be initialize unexpected when I use this function for timer1.
If a correction for this glitch can be added into next version of LPCOpen, I will appreciate it very much.