diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-04-19 09:15:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-04-19 09:50:40 -0400 |
commit | 8f9e497d6950bf47274cb084a6d3d8ca2b854976 (patch) | |
tree | 6162024d89695dafc78374fda1fe3cfbfbb13b85 /src/linux/internal.h | |
parent | e0aba590f94e89fa6210e653bf21bd129bde42d4 (diff) | |
download | kutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.tar.gz kutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.tar.xz kutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.zip |
linux: Rework timer_check_periodic() to use ticks
Avoid using a 'struct timespec' to simplify the code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux/internal.h')
-rw-r--r-- | src/linux/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/internal.h b/src/linux/internal.h index ac4f3f13..5a9ce907 100644 --- a/src/linux/internal.h +++ b/src/linux/internal.h @@ -2,7 +2,7 @@ #define __LINUX_INTERNAL_H // Local definitions for micro-controllers running on linux -#include <time.h> // struct timespec +#include <stdint.h> // uint32_t #include "autoconf.h" // CONFIG_CLOCK_FREQ #define MAX_GPIO_LINES 256 @@ -22,7 +22,7 @@ int console_setup(char *name); void console_sleep(struct timespec ts); // timer.c -int timer_check_periodic(struct timespec *ts); +int timer_check_periodic(uint32_t *ts); // watchdog.c int watchdog_setup(void); |