katapult/src/Kconfig
Kevin O'Connor 24d4eb16c9 initial_pins: Port initial_pins capability from Klipper
Some boards require an initial gpio state in order to start USB.  Port
the initial_pins capability from Klipper to provide that support.

This also synchronizes scripts/buildcommands.py with the latest code
from Klipper.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-16 13:59:42 -04:00

83 lines
2.1 KiB
Plaintext

# Main Kconfig settings
mainmenu "CanBoot Configuration"
config LOW_LEVEL_OPTIONS
bool
default y
config MACH_STM32
bool
default y
source "src/stm32/Kconfig"
# 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.
# Generic configuration options for USB
config USB_VENDOR_ID
default 0x1d50
config USB_DEVICE_ID
default 0x614e
config USB_SERIAL_NUMBER_CHIPID
depends on HAVE_CHIPID
default y
config USB_SERIAL_NUMBER
default "12345"
menu "USB ids"
depends on USBSERIAL && LOW_LEVEL_OPTIONS
config USB_VENDOR_ID
hex "USB vendor ID"
config USB_DEVICE_ID
hex "USB device ID"
config USB_SERIAL_NUMBER_CHIPID
bool "USB serial number from CHIPID" if HAVE_CHIPID
config USB_SERIAL_NUMBER
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
endmenu
config INITIAL_PINS
string "GPIO pins to set on bootloader entry"
depends on LOW_LEVEL_OPTIONS
help
One may specify a comma separated list of gpio pins to set
during bootloader entry (these gpio pins are not set if the
main application is started nor are they set while checking
for a bootloader request). By default the pins will be set to
output high - preface a pin with a '!' character to set that
pin to output low.
config ENABLE_DOUBLE_RESET
bool "Support bootloader entry on rapid double click of reset button"
default y
config ENABLE_BUTTON
bool "Enable bootloader entry on button (or gpio) state"
default n
config BUTTON_PIN
string "Button GPIO Pin"
depends on ENABLE_BUTTON
config ENABLE_LED
bool "Enable Status LED"
default n
config STATUS_LED_PIN
string "Status LED GPIO Pin"
depends on ENABLE_LED
# The HAVE_x options allow boards to disable support for some commands
# if the hardware does not support the feature.
config HAVE_CHIPID
bool
default n