Lines Matching refs:timer_counter
82 static uint32_t timer_counter(void) in timer_counter() function
103 g_assert_cmpuint(timer_counter(), ==, 9990000); in test_timer_oneshot()
107 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
112 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
126 g_assert_cmpuint(timer_counter(), ==, 999999000); in test_timer_pause()
131 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
136 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
141 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
149 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause()
154 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause()
167 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 90000); in test_timer_reload()
174 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 90000); in test_timer_reload()
190 g_assert_cmpuint(timer_counter(), ==, 100 - repeat); in test_timer_periodic()
207 g_assert_cmpuint(timer_counter(), ==, 9000); in test_timer_oneshot_to_periodic()
214 g_assert_cmpuint(timer_counter(), ==, 5000); in test_timer_oneshot_to_periodic()
228 g_assert_cmpuint(timer_counter(), ==, 99999000); in test_timer_periodic_to_oneshot()
235 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_periodic_to_oneshot()
247 g_assert_cmpuint(timer_counter(), ==, 1); in test_timer_prescaler()
252 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_prescaler()
261 g_assert_cmpuint(timer_counter(), ==, 1); in test_timer_prescaler()
266 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_prescaler()
278 g_assert_cmpuint(timer_counter(), ==, 9999000); in test_timer_prescaler_on_the_fly()
285 g_assert_cmpuint(timer_counter(), ==, 9990000); in test_timer_prescaler_on_the_fly()
299 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 1); in test_timer_set_oneshot_counter_to_0()
306 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_oneshot_counter_to_0()
320 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 1); in test_timer_set_periodic_counter_to_0()
327 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - (scaler ? 0 : 1)); in test_timer_set_periodic_counter_to_0()
336 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 1); in test_timer_set_periodic_counter_to_0()
343 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_periodic_counter_to_0()
356 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_noload_oneshot()
361 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_noload_oneshot()
374 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_noload_periodic()
379 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_noload_periodic()
393 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot()
399 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot()
404 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot()
418 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_periodic()
424 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_periodic()
429 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_periodic()
442 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot_to_nonzero()
450 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot_to_nonzero()
456 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_oneshot_to_nonzero()
471 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_periodic_to_nonzero()
477 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_periodic_to_nonzero()
485 g_assert_cmpuint(timer_counter(), ==, 1999999 - i); in test_timer_zero_load_periodic_to_nonzero()
501 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_nonzero_load_oneshot_to_zero()
508 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_nonzero_load_oneshot_to_zero()
521 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_nonzero_load_periodic_to_zero()
529 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_nonzero_load_periodic_to_zero()
543 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX / 2 - 100); in test_timer_set_periodic_counter_on_the_fly()
550 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 100); in test_timer_set_periodic_counter_on_the_fly()
569 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 100); in test_timer_enable_and_set_counter()
583 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 100); in test_timer_set_counter_and_enable()
594 g_assert_cmpuint(timer_counter(), ==, 999999999); in test_timer_set_counter_disabled()
605 g_assert_cmpuint(timer_counter(), ==, 999999999); in test_timer_load_disabled()
620 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot_with_counter_0_on_start()
625 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot_with_counter_0_on_start()
639 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_periodic_with_counter_0_on_start()
646 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX + (scaler ? 1 : 0) - 100); in test_timer_periodic_with_counter_0_on_start()
650 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX + (scaler ? 1 : 0) - 200); in test_timer_periodic_with_counter_0_on_start()
657 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_periodic_with_counter_0_on_start()
673 g_assert_cmpuint(timer_counter(), ==, 1999999 - i); in test_timer_periodic_with_counter_0_on_start()
693 g_assert_cmpint(timer_counter(), ==, test_val); in test_periodic_counter()
717 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_counter_periodic_with_zero_load()
722 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_counter_periodic_with_zero_load()
736 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 100); in test_timer_set_oneshot_load_to_0()
743 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_oneshot_load_to_0()
748 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_oneshot_load_to_0()
762 g_assert_cmpuint(timer_counter(), ==, UINT32_MAX - 100); in test_timer_set_periodic_load_to_0()
769 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_periodic_load_to_0()
775 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_periodic_load_to_0()
788 g_assert_cmpuint(timer_counter(), ==, 0); in test_deferred_trigger()
862 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_mode_switch()
871 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_mode_switch()
876 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_mode_switch()
885 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_mode_switch()
897 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_periodic_to_nonscaled_oneshot()
903 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_periodic_to_nonscaled_oneshot()
913 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_periodic_to_nonscaled_oneshot()
919 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_periodic_to_nonscaled_oneshot()
931 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_oneshot_to_nonscaled_periodic()
939 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_prescaled_oneshot_to_nonscaled_periodic()
951 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_oneshot_to_prescaled_periodic()
958 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_oneshot_to_prescaled_periodic()
964 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_oneshot_to_prescaled_periodic()
977 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_periodic_to_prescaled_oneshot()
984 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_periodic_to_prescaled_oneshot()
990 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_zero_load_nonscaled_periodic_to_prescaled_oneshot()