mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-02-01 16:38:41 +03:00
plus4的klipper版本
This commit is contained in:
82
src/Kconfig
82
src/Kconfig
@@ -4,7 +4,6 @@ mainmenu "Klipper Firmware Configuration"
|
||||
|
||||
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.
|
||||
@@ -16,15 +15,19 @@ choice
|
||||
config MACH_ATSAM
|
||||
bool "SAM3/SAM4/SAM E70 (Due and Duet)"
|
||||
config MACH_ATSAMD
|
||||
bool "SAMD21/SAMD51"
|
||||
bool "SAMC21/SAMD21/SAMD51/SAME5x"
|
||||
config MACH_LPC176X
|
||||
bool "LPC176x (Smoothieboard)"
|
||||
config MACH_STM32
|
||||
bool "STMicroelectronics STM32"
|
||||
config MACH_HC32F460
|
||||
bool "Huada Semiconductor HC32F460"
|
||||
config MACH_RP2040
|
||||
bool "Raspberry Pi RP2040"
|
||||
config MACH_PRU
|
||||
bool "Beaglebone PRU"
|
||||
config MACH_AR100
|
||||
bool "Allwinner A64 AR100"
|
||||
config MACH_LINUX
|
||||
bool "Linux process"
|
||||
config MACH_SIMU
|
||||
@@ -36,8 +39,10 @@ source "src/atsam/Kconfig"
|
||||
source "src/atsamd/Kconfig"
|
||||
source "src/lpc176x/Kconfig"
|
||||
source "src/stm32/Kconfig"
|
||||
source "src/hc32f460/Kconfig"
|
||||
source "src/rp2040/Kconfig"
|
||||
source "src/pru/Kconfig"
|
||||
source "src/ar100/Kconfig"
|
||||
source "src/linux/Kconfig"
|
||||
source "src/simulator/Kconfig"
|
||||
|
||||
@@ -57,18 +62,21 @@ config USBSERIAL
|
||||
bool
|
||||
config USBCANBUS
|
||||
bool
|
||||
config USB
|
||||
bool
|
||||
default y if USBSERIAL || USBCANBUS
|
||||
config USB_VENDOR_ID
|
||||
default 0x1d50
|
||||
config USB_DEVICE_ID
|
||||
default 0x614e
|
||||
config USB_SERIAL_NUMBER_CHIPID
|
||||
depends on HAVE_CHIPID && (USBSERIAL || USBCANBUS)
|
||||
depends on USB && HAVE_CHIPID
|
||||
default y
|
||||
config USB_SERIAL_NUMBER
|
||||
default "12345"
|
||||
|
||||
menu "USB ids"
|
||||
depends on (USBSERIAL || USBCANBUS) && LOW_LEVEL_OPTIONS
|
||||
depends on USB && LOW_LEVEL_OPTIONS
|
||||
config USB_VENDOR_ID
|
||||
hex "USB vendor ID" if USBSERIAL
|
||||
config USB_DEVICE_ID
|
||||
@@ -79,6 +87,53 @@ config USB_SERIAL_NUMBER
|
||||
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
|
||||
endmenu
|
||||
|
||||
# Optional features that can be disabled (for devices with small flash sizes)
|
||||
config WANT_GPIO_BITBANGING
|
||||
bool
|
||||
depends on HAVE_GPIO
|
||||
default y
|
||||
config WANT_DISPLAYS
|
||||
bool
|
||||
depends on HAVE_GPIO
|
||||
default y
|
||||
config WANT_SENSORS
|
||||
bool
|
||||
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_LIS2DW
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SOFTWARE_I2C
|
||||
bool
|
||||
depends on HAVE_GPIO && HAVE_GPIO_I2C
|
||||
default y
|
||||
config WANT_SOFTWARE_SPI
|
||||
bool
|
||||
depends on HAVE_GPIO && HAVE_GPIO_SPI
|
||||
default y
|
||||
menu "Optional features (to reduce code size)"
|
||||
depends on HAVE_LIMITED_CODE_SIZE
|
||||
config WANT_GPIO_BITBANGING
|
||||
bool "Support GPIO \"bit-banging\" devices"
|
||||
depends on HAVE_GPIO
|
||||
config WANT_DISPLAYS
|
||||
bool "Support LCD devices"
|
||||
depends on HAVE_GPIO
|
||||
config WANT_SENSORS
|
||||
bool "Support external sensor devices"
|
||||
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
||||
config WANT_LIS2DW
|
||||
bool "Support lis2dw 3-axis accelerometer"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SOFTWARE_I2C
|
||||
bool "Support software based I2C \"bit-banging\""
|
||||
depends on HAVE_GPIO && HAVE_GPIO_I2C
|
||||
config WANT_SOFTWARE_SPI
|
||||
bool "Support software based SPI \"bit-banging\""
|
||||
depends on HAVE_GPIO && HAVE_GPIO_SPI
|
||||
endmenu
|
||||
|
||||
# Generic configuration options for CANbus
|
||||
config CANSERIAL
|
||||
bool
|
||||
@@ -87,7 +142,7 @@ config CANBUS
|
||||
default y if CANSERIAL || USBCANBUS
|
||||
config CANBUS_FREQUENCY
|
||||
int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANBUS
|
||||
default 500000
|
||||
default 1000000
|
||||
config CANBUS_FILTER
|
||||
bool
|
||||
default y if CANSERIAL
|
||||
@@ -106,31 +161,26 @@ config INITIAL_PINS
|
||||
# if the hardware does not support the feature.
|
||||
config HAVE_GPIO
|
||||
bool
|
||||
default n
|
||||
config HAVE_GPIO_ADC
|
||||
bool
|
||||
default n
|
||||
config HAVE_GPIO_SPI
|
||||
bool
|
||||
default n
|
||||
config HAVE_GPIO_SDIO
|
||||
bool
|
||||
config HAVE_GPIO_I2C
|
||||
bool
|
||||
default n
|
||||
config HAVE_GPIO_HARD_PWM
|
||||
bool
|
||||
default n
|
||||
config HAVE_GPIO_BITBANGING
|
||||
bool
|
||||
default n
|
||||
config HAVE_STRICT_TIMING
|
||||
bool
|
||||
default n
|
||||
config HAVE_CHIPID
|
||||
bool
|
||||
default n
|
||||
config HAVE_STEPPER_BOTH_EDGE
|
||||
bool
|
||||
default n
|
||||
config HAVE_BOOTLOADER_REQUEST
|
||||
bool
|
||||
config HAVE_LIMITED_CODE_SIZE
|
||||
bool
|
||||
|
||||
config INLINE_STEPPER_HACK
|
||||
# Enables gcc to inline stepper_event() into the main timer irq handler
|
||||
|
||||
Reference in New Issue
Block a user