From aab89e7f85d01fffb349b2046daebdc0deb1ce92 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 24 Mar 2019 10:25:56 +0100 Subject: linux: add support for Linux hardware PWM The replicape servo pins (P9_14/P9_16) are muxed to the SOCs hardware PWM unit driven by a 13MHz GP timer. They have to be driven by the linux host mcu. This commits adds hardware PWM support using the linux sysfs user space interface. Signed-off-by: Janne Grunau Signed-off-by: Kevin O'Connor --- src/linux/timer.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/linux/timer.c') diff --git a/src/linux/timer.c b/src/linux/timer.c index 15e5ab76..fb8319af 100644 --- a/src/linux/timer.c +++ b/src/linux/timer.c @@ -21,9 +21,6 @@ static uint32_t last_read_time_counter; static struct timespec last_read_time, next_wake_time; static time_t start_sec; -#define NSECS 1000000000 -#define NSECS_PER_TICK (NSECS / CONFIG_CLOCK_FREQ) - // Compare two 'struct timespec' times static inline uint8_t timespec_is_before(struct timespec ts1, struct timespec ts2) -- cgit v1.2.3-70-g09d2