refine the main.c to use PIT instead of systemTick

Signed-off-by: linwenjian <wenjian_lin@163.com>