fix function defs for compiler
This commit is contained in:
parent
cbd519bfa6
commit
005c4caf8c
@ -31,11 +31,11 @@
|
|||||||
#include "supervisor/shared/tick.h"
|
#include "supervisor/shared/tick.h"
|
||||||
#include "tick.h"
|
#include "tick.h"
|
||||||
|
|
||||||
inline uint64_t common_hal_time_monotonic() {
|
inline uint64_t common_hal_time_monotonic(void) {
|
||||||
return supervisor_ticks_ms64();
|
return supervisor_ticks_ms64();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t common_hal_time_monotonic_ns() {
|
uint64_t common_hal_time_monotonic_ns(void) {
|
||||||
uint64_t ms;
|
uint64_t ms;
|
||||||
uint32_t us_until_ms;
|
uint32_t us_until_ms;
|
||||||
current_tick(&ms, &us_until_ms);
|
current_tick(&ms, &us_until_ms);
|
||||||
|
@ -34,7 +34,7 @@ uint64_t common_hal_time_monotonic(void) {
|
|||||||
return supervisor_ticks_ms64();
|
return supervisor_ticks_ms64();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t common_hal_time_monotonic_ns() {
|
uint64_t common_hal_time_monotonic_ns(void) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
return 1000 * ((uint64_t) tv.tv_sec * 1000000 + (uint64_t) tv.tv_usec);
|
return 1000 * ((uint64_t) tv.tv_sec * 1000000 + (uint64_t) tv.tv_usec);
|
||||||
|
@ -32,11 +32,11 @@
|
|||||||
|
|
||||||
#include "tick.h"
|
#include "tick.h"
|
||||||
|
|
||||||
inline uint64_t common_hal_time_monotonic() {
|
inline uint64_t common_hal_time_monotonic(void) {
|
||||||
return supervisor_ticks_ms64();
|
return supervisor_ticks_ms64();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t common_hal_time_monotonic_ns() {
|
uint64_t common_hal_time_monotonic_ns(void) {
|
||||||
uint64_t ms;
|
uint64_t ms;
|
||||||
uint32_t us_until_ms;
|
uint32_t us_until_ms;
|
||||||
current_tick(&ms, &us_until_ms);
|
current_tick(&ms, &us_until_ms);
|
||||||
|
@ -32,7 +32,7 @@ uint64_t common_hal_time_monotonic(void) {
|
|||||||
return supervisor_ticks_ms64();
|
return supervisor_ticks_ms64();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t common_hal_time_monotonic_ns() {
|
uint64_t common_hal_time_monotonic_ns(void) {
|
||||||
uint64_t ms;
|
uint64_t ms;
|
||||||
uint32_t us_until_ms;
|
uint32_t us_until_ms;
|
||||||
current_tick(&ms, &us_until_ms);
|
current_tick(&ms, &us_until_ms);
|
||||||
|
@ -32,7 +32,7 @@ uint64_t common_hal_time_monotonic(void) {
|
|||||||
return supervisor_ticks_ms64();
|
return supervisor_ticks_ms64();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t common_hal_time_monotonic_ns() {
|
uint64_t common_hal_time_monotonic_ns(void) {
|
||||||
uint64_t ms;
|
uint64_t ms;
|
||||||
uint32_t us_until_ms;
|
uint32_t us_until_ms;
|
||||||
current_tick(&ms, &us_until_ms);
|
current_tick(&ms, &us_until_ms);
|
||||||
|
Loading…
Reference in New Issue
Block a user