File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -335,18 +335,13 @@ int z_nrf_grtc_timer_capture_prepare(int32_t chan)
335
335
336
336
int z_nrf_grtc_timer_capture_read (int32_t chan , uint64_t * captured_time )
337
337
{
338
- /* TODO: The implementation should probably go to nrfx_grtc and this
339
- * should be just a wrapper for some nrfx_grtc_syscounter_capture_read.
340
- */
341
-
342
338
uint64_t capt_time ;
343
339
nrfx_err_t result ;
344
340
345
341
IS_CHANNEL_ALLOWED_ASSERT (chan );
346
342
347
- /* TODO: Use `nrfy_grtc_sys_counter_enable_check` when available (NRFX-2480) */
348
- if (NRF_GRTC -> CC [chan ].CCEN == GRTC_CC_CCEN_ACTIVE_Enable ) {
349
- /* If the channel is enabled (.CCEN), it means that there was no capture
343
+ if (nrfx_grtc_sys_counter_cc_enable_check (chan )) {
344
+ /* If the channel is enabled, it means that there was no capture
350
345
* triggering event.
351
346
*/
352
347
return - EBUSY ;
You can’t perform that action at this time.
0 commit comments