1# Copyright (c) 2024 NXP Semiconductors 2# SPDX-License-Identifier: Apache-2.0 3 4config INPUT_SBUS 5 bool "SBUS driver" 6 default y 7 depends on DT_HAS_FUTABA_SBUS_ENABLED 8 depends on UART_INTERRUPT_DRIVEN 9 select UART_USE_RUNTIME_CONFIGURE 10 help 11 Enable driver for SBUS Remote controller. 12 13if INPUT_SBUS 14 15config INPUT_SBUS_THREAD_STACK_SIZE 16 int "Stack size for the sbus thread" 17 default 1024 18 help 19 Size of the stack used for the sbus thread. 20 21config INPUT_SBUS_THREAD_PRIORITY 22 int "Priority for the sbus thread" 23 default 0 24 help 25 Priority level of the sbus thread. 26 27config INPUT_SBUS_REPORT_FILTER 28 int "Minimal change in signal to report" 29 default 1 30 help 31 SBUS tends to be a bit noisy you can increase the threshold to 32 lower the amounts of input events. Set to 0 for no filtering 33 34config INPUT_SBUS_SEND_SYNC 35 bool "Send Sync to input subsys on each SBUS frame" 36 default y 37 help 38 Sends sync message to input subsys with sync bit. 39 40config INPUT_SBUS_CHANNEL_VALUE_ONE 41 int "Threshold value > for INPUT_EV_KEY value 1" 42 default 1800 43 help 44 SBUS sends analogue values for digital switches. This config value 45 sets the threshold to interperted the analogue value as an logic 1 46 47config INPUT_SBUS_CHANNEL_VALUE_ZERO 48 int "Threshold value < for INPUT_EV_KEY value 0" 49 default 1200 50 help 51 SBUS sends analogue values for digital switches. This config value 52 sets the threshold to interperted the analogue value as an logic 0 53 54endif # INPUT_SBUS 55