fix for system timer to prevent reading timer state partly before and partly after a timer reload

Conflicts:
	src/common_tmr.c
Handle systick timer wrap a little better.

Conflicts:
	src/common_tmr.c
Workaround for systick overflow during systick interrupt.

Conflicts:
	src/common_tmr.c