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>
This commit is contained in:
Kevin O'Connor
2021-04-19 09:15:28 -04:00
parent e0aba590f9
commit 8f9e497d69
3 changed files with 14 additions and 14 deletions

View File

@@ -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);