When the corresponding devices are not installed, can the timer be used? 

If the device name is not specified by using TimInit function, the system timer will be used automatically.

In this case, the program does not need to be modified.