mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 08:40:35 +09:00
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 <janne-3d@jannau.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
committed by
Kevin O'Connor
parent
e6c3eeafd7
commit
aab89e7f85
@@ -3,6 +3,10 @@
|
||||
// Local definitions for micro-controllers running on linux
|
||||
|
||||
#include <time.h> // struct timespec
|
||||
#include "autoconf.h" // CONFIG_CLOCK_FREQ
|
||||
|
||||
#define NSECS 1000000000
|
||||
#define NSECS_PER_TICK (NSECS / CONFIG_CLOCK_FREQ)
|
||||
|
||||
// console.c
|
||||
void report_errno(char *where, int rc);
|
||||
|
||||
Reference in New Issue
Block a user