File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,7 @@ int controller_time_init(void)
3131
3232uint64_t controller_time_us_get (void )
3333{
34- int ret ;
35- uint64_t current_time_us ;
36-
37- ret = nrfx_grtc_syscounter_get (& current_time_us );
38- if (ret != NRFX_SUCCESS ) {
39- printk ("Failed obtaining system time (ret: %d)\n" , ret - NRFX_ERROR_BASE_NUM );
40- return 0 ;
41- }
42-
43- return current_time_us ;
34+ return nrfx_grtc_syscounter_get ();
4435}
4536
4637void controller_time_trigger_set (uint64_t timestamp_us )
Original file line number Diff line number Diff line change @@ -31,16 +31,7 @@ int controller_time_init(void)
3131
3232uint64_t controller_time_us_get (void )
3333{
34- int ret ;
35- uint64_t current_time_us ;
36-
37- ret = nrfx_grtc_syscounter_get (& current_time_us );
38- if (ret != NRFX_SUCCESS ) {
39- printk ("Failed obtaining system time (ret: %d)\n" , ret - NRFX_ERROR_BASE_NUM );
40- return 0 ;
41- }
42-
43- return current_time_us ;
34+ return nrfx_grtc_syscounter_get ();
4435}
4536
4637void controller_time_trigger_set (uint64_t timestamp_us )
You can’t perform that action at this time.
0 commit comments