mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
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>
22 lines
341 B
Plaintext
22 lines
341 B
Plaintext
# Kconfig settings for compiling and running the micro-controller code
|
|
# in a Linux process
|
|
|
|
if MACH_LINUX
|
|
|
|
config LINUX_SELECT
|
|
bool
|
|
default y
|
|
select HAVE_GPIO_ADC
|
|
select HAVE_GPIO_SPI
|
|
select HAVE_GPIO_HARD_PWM
|
|
|
|
config BOARD_DIRECTORY
|
|
string
|
|
default "linux"
|
|
|
|
config CLOCK_FREQ
|
|
int
|
|
default 20000000
|
|
|
|
endif
|