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
|
2019-01-15 02:21:50 +03:00
|
|
|
bool "SAMD21/SAMD51"
|
2018-05-08 04:32:27 +03:00
|
|
|
config MACH_LPC176X
|
|
|
|
bool "LPC176x (Smoothieboard)"
|
2019-07-29 06:15:54 +03:00
|
|
|
config MACH_STM32
|
2019-09-17 04:39:29 +03:00
|
|
|
bool "STMicroelectronics STM32"
|
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"
|
2019-07-29 06:15:54 +03:00
|
|
|
source "src/stm32/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"
|
|
|
|
|
2019-01-26 01:55:57 +03:00
|
|
|
# Generic configuration options for serial ports
|
|
|
|
config SERIAL_BAUD
|
|
|
|
depends on SERIAL
|
|
|
|
int "Baud rate for serial port" if LOW_LEVEL_OPTIONS
|
|
|
|
default 250000
|
|
|
|
help
|
|
|
|
Specify the baud rate of the serial port. This should be set
|
|
|
|
to 250000. Read the FAQ before changing this value.
|
2018-08-07 02:03:54 +03:00
|
|
|
|
2019-01-26 03:02:01 +03:00
|
|
|
# Generic configuration options for USB
|
|
|
|
menu "USB ids"
|
|
|
|
depends on USBSERIAL
|
|
|
|
|
|
|
|
config USB_VENDOR_ID
|
|
|
|
hex "USB vendor ID"
|
2020-06-01 03:44:22 +03:00
|
|
|
default 0x1d50
|
2019-01-26 03:02:01 +03:00
|
|
|
config USB_DEVICE_ID
|
|
|
|
hex "USB device ID"
|
2020-06-01 03:44:22 +03:00
|
|
|
default 0x614e
|
2019-11-21 19:54:20 +03:00
|
|
|
config USB_SERIAL_NUMBER_CHIPID
|
|
|
|
depends on HAVE_CHIPID
|
|
|
|
bool "USB serial number from CHIPID"
|
|
|
|
default y
|
2019-11-21 19:34:11 +03:00
|
|
|
config USB_SERIAL_NUMBER
|
|
|
|
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
|
|
|
|
default "12345"
|
2019-01-26 03:02:01 +03:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
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
|
2019-03-10 02:18:24 +03:00
|
|
|
micro-controller. If this value is set to zero (or less) then
|
|
|
|
the code will "step" and "unstep" in the same C function.
|
2019-01-09 21:10:23 +03:00
|
|
|
|
2019-03-10 02:18:24 +03:00
|
|
|
A setting of zero (or less) on 8-bit AVR micro-controllers
|
|
|
|
results in a minimum step pulse time a little over 2us.
|
2019-01-09 21:10:23 +03:00
|
|
|
|
2019-03-10 02:18:24 +03:00
|
|
|
A setting of zero on ARM micro-controllers typically results
|
|
|
|
in a minimum step pulse time of 20 cpu cycles.
|
2019-01-09 21:10:23 +03:00
|
|
|
|
2019-03-10 02:18:24 +03:00
|
|
|
The default for AVR is -1, for all other micro-controllers it
|
|
|
|
is 2us.
|
2018-08-07 02:03:54 +03:00
|
|
|
|
2019-03-18 03:41:52 +03:00
|
|
|
config INITIAL_PINS
|
|
|
|
string "GPIO pins to set at micro-controller startup"
|
|
|
|
depends on LOW_LEVEL_OPTIONS
|
|
|
|
help
|
|
|
|
One may specify a comma separated list of gpio pins to set
|
|
|
|
during the micro-controller startup sequence. By default the
|
|
|
|
pins will be set to output high - preface a pin with a '!'
|
|
|
|
character to set that pin to output low.
|
|
|
|
|
2019-11-21 19:34:11 +03:00
|
|
|
# The HAVE_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
|
2020-05-25 07:27:18 +03:00
|
|
|
config HAVE_STRICT_TIMING
|
|
|
|
bool
|
|
|
|
default n
|
2019-11-21 19:34:11 +03:00
|
|
|
config HAVE_CHIPID
|
|
|
|
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
|