diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-07-20 00:02:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-20 12:55:28 -0400 |
commit | d851882278644b959d9175d6b303631ddc8cd2c6 (patch) | |
tree | 786412ef59997a3c885c4ee15cf28d2597fa2d77 /src/linux/internal.h | |
parent | 3ccecc568dbfd505fe3bdc46b4d16bf7a4528996 (diff) | |
download | kutter-d851882278644b959d9175d6b303631ddc8cd2c6.tar.gz kutter-d851882278644b959d9175d6b303631ddc8cd2c6.tar.xz kutter-d851882278644b959d9175d6b303631ddc8cd2c6.zip |
linux: Initial support for running Klipper in a Linux real-time process
Add support for compiling the Klipper micro-controller code as a
real-time process capable of running on standard Linux systems.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux/internal.h')
-rw-r--r-- | src/linux/internal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/linux/internal.h b/src/linux/internal.h new file mode 100644 index 00000000..1ade2233 --- /dev/null +++ b/src/linux/internal.h @@ -0,0 +1,17 @@ +#ifndef __LINUX_INTERNAL_H +#define __LINUX_INTERNAL_H +// Local definitions for micro-controllers running on linux + +#include <time.h> // struct timespec + +// console.c +int console_setup(char *name); +void console_sleep(struct timespec ts); + +// timer.c +int timer_check_periodic(struct timespec *ts); + +// watchdog.c +int watchdog_setup(void); + +#endif // internal.h |