2016-05-25 18:37:40 +03:00
|
|
|
# Main Kconfig settings
|
|
|
|
|
|
|
|
mainmenu "Klipper Firmware Configuration"
|
|
|
|
|
2019-01-09 21:10:23 +03:00
|
|
|
config LOW_LEVEL_OPTIONS
|
|
|
|
bool "Enable extra low-level configuration options"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable low-level configuration options that (if modified) may
|
|
|
|
result in a build that does not function correctly.
|
|
|
|
|
2016-05-25 18:37:40 +03:00
|
|
|
choice
|
|
|
|
prompt "Micro-controller Architecture"
|
|
|
|
config MACH_AVR
|
|
|
|
bool "Atmega AVR"
|
2019-01-13 04:14:50 +03:00
|
|
|
config MACH_ATSAM
|
2018-12-27 00:50:44 +03:00
|
|
|
bool "SAM3/SAM4 (Due and Duet)"
|
2019-01-13 04:14:50 +03:00
|
|
|
config MACH_ATSAMD
|
2018-07-28 02:22:44 +03:00
|
|
|
bool "SAMD21 (Arduino Zero)"
|
2018-05-08 04:32:27 +03:00
|
|
|
config MACH_LPC176X
|
|
|
|
bool "LPC176x (Smoothieboard)"
|
2018-03-31 16:34:59 +03:00
|
|
|
config MACH_STM32F1
|
|
|
|
bool "STMicroelectronics STM32F103"
|
2017-05-07 04:47:04 +03:00
|
|
|
config MACH_PRU
|
|
|
|
bool "Beaglebone PRU"
|
2017-07-20 07:02:43 +03:00
|
|
|
config MACH_LINUX
|
|
|
|
bool "Linux process"
|
2016-05-25 18:37:40 +03:00
|
|
|
config MACH_SIMU
|
|
|
|
bool "Host simulator"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
source "src/avr/Kconfig"
|
2019-01-13 04:14:50 +03:00
|
|
|
source "src/atsam/Kconfig"
|
|
|
|
source "src/atsamd/Kconfig"
|
2018-05-08 04:32:27 +03:00
|
|
|
source "src/lpc176x/Kconfig"
|
2018-03-31 16:34:59 +03:00
|
|
|
source "src/stm32f1/Kconfig"
|
2017-05-07 04:47:04 +03:00
|
|
|
source "src/pru/Kconfig"
|
2017-07-20 07:02:43 +03:00
|
|
|
source "src/linux/Kconfig"
|
2016-05-25 18:37:40 +03:00
|
|
|
source "src/simulator/Kconfig"
|
|
|
|
|
2018-08-07 02:03:54 +03:00
|
|
|
|
2019-01-09 21:10:23 +03:00
|
|
|
# Step timing customization
|
|
|
|
config CUSTOM_STEP_DELAY
|
|
|
|
bool "Specify a custom step pulse duration"
|
|
|
|
depends on LOW_LEVEL_OPTIONS
|
|
|
|
config STEP_DELAY
|
|
|
|
int
|
|
|
|
default 2
|
|
|
|
config STEP_DELAY
|
|
|
|
int "Step pulse duration (in microseconds)"
|
|
|
|
depends on CUSTOM_STEP_DELAY
|
|
|
|
help
|
|
|
|
Specify the duration of the stepper step pulse time. This
|
|
|
|
setting applies to all stepper drivers controlled by the
|
|
|
|
micro-controller. If this value is set to zero then the code
|
|
|
|
will "step" and "unstep" in the same C function.
|
|
|
|
|
|
|
|
The default is zero for 8-bit AVR based micro-controllers, as
|
|
|
|
it takes a little over 2us to step and unstep with this
|
|
|
|
setting.
|
|
|
|
|
|
|
|
The default for all other micro-controllers is 2us.
|
|
|
|
|
|
|
|
CUSTOMIZING THIS VALUE DOES NOT IMPROVE PERFORMANCE!
|
2018-08-07 02:03:54 +03:00
|
|
|
|
2016-06-09 02:32:06 +03:00
|
|
|
# The HAVE_GPIO_x options allow boards to disable support for some
|
|
|
|
# commands if the hardware does not support the feature.
|
2017-07-20 06:59:35 +03:00
|
|
|
config HAVE_GPIO
|
|
|
|
bool
|
|
|
|
default n
|
2016-06-09 02:32:06 +03:00
|
|
|
config HAVE_GPIO_ADC
|
|
|
|
bool
|
|
|
|
default n
|
2016-06-09 02:35:45 +03:00
|
|
|
config HAVE_GPIO_SPI
|
|
|
|
bool
|
|
|
|
default n
|
2018-10-26 10:37:21 +03:00
|
|
|
config HAVE_GPIO_I2C
|
|
|
|
bool
|
|
|
|
default n
|
2016-06-09 02:44:34 +03:00
|
|
|
config HAVE_GPIO_HARD_PWM
|
|
|
|
bool
|
|
|
|
default n
|
2018-08-27 18:09:47 +03:00
|
|
|
config HAVE_GPIO_BITBANGING
|
2018-02-21 04:47:02 +03:00
|
|
|
bool
|
|
|
|
default n
|
2016-06-09 02:32:06 +03:00
|
|
|
|
2016-05-25 18:37:40 +03:00
|
|
|
config INLINE_STEPPER_HACK
|
|
|
|
# Enables gcc to inline stepper_event() into the main timer irq handler
|
|
|
|
bool
|
2017-07-20 06:59:35 +03:00
|
|
|
depends on HAVE_GPIO
|
2016-06-14 21:27:30 +03:00
|
|
|
default y
|