Add systick_has_passed function