File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ float clock_cpu_getres(void)
3434 *
3535 * @return the cpu tick
3636 */
37- uint32_t clock_cpu_gettime (void )
37+ uint64_t clock_cpu_gettime (void )
3838{
3939 if (_cputime_ops )
4040 return _cputime_ops -> cputime_gettime ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ static float cortexm_cputime_getres(void)
2424 return ret ;
2525}
2626
27- static uint32_t cortexm_cputime_gettime (void )
27+ static uint64_t cortexm_cputime_gettime (void )
2828{
2929 return DWT -> CYCCNT ;
3030}
Original file line number Diff line number Diff line change 1616struct rt_clock_cputime_ops
1717{
1818 float (* cputime_getres ) (void );
19- uint32_t (* cputime_gettime )(void );
19+ uint64_t (* cputime_gettime )(void );
2020};
2121
2222float clock_cpu_getres (void );
23- uint32_t clock_cpu_gettime (void );
23+ uint64_t clock_cpu_gettime (void );
2424
2525uint32_t clock_cpu_microsecond (uint32_t cpu_tick );
2626uint32_t clock_cpu_millisecond (uint32_t cpu_tick );
You can’t perform that action at this time.
0 commit comments