Commit graph

4 commits

Author SHA1 Message Date
Adam Kondraciuk 2cd2d5fef3 tests: drivers: timer: grtc: Fix GRTC test
The `z_nrf_grtc_timer_get_ticks()` function converts system ticks
to GRTC ticks. It gets the current system tick to calculate an
absolute GRTC value. The same does the test function to provide
an argument to be converted. If the system tick occurs between those
`sys_clock_tick_get()` calls the `z_nrf_grtc_timer_get_ticks()` will
take into account the newer tick while the test estimate bases on
the old tick value. Due to that the maximum result error is 1 system
tick minus 1 GRTC tick which equals (`CYC_PER_TICK` - 1) for GRTC
ticks.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2024-05-28 18:53:39 +02:00
Marcin Szymczyk 809c6c34d3 tests: drivers: timer: nrf_grtc_timer: add nRF54L15 FLPR to targets
Allow testing FLPR with this testcase.

Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
2024-05-27 14:04:46 +01:00
Nikodem Kastelik 1f9bec7f08 tests: drivers: timer: nrf_grtc_timer: add nRF54H20 target
GRTC peripheral is present on nRF54H20,
so the tests should be executed on this target as well.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2024-04-18 08:41:04 -07:00
Magdalena Pastula c57946173f tests: drivers: timer: add nrf_grtc_timer tests
Add NRF GRTC timer test for nRF54L15.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00