drivers: serial: nrf: Remove flow control configuration from kconfig
Removed flow control configuration from Kconfig and updated samples to use device tree for that. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
176d2d9f85
commit
43cad10f73
22 changed files with 9 additions and 42 deletions
|
@ -12,7 +12,6 @@ CONFIG_GPIO=y
|
|||
|
||||
# enable uart driver
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=n
|
||||
|
||||
# enable console
|
||||
CONFIG_CONSOLE=y
|
||||
|
|
|
@ -27,9 +27,6 @@ config BT_CTLR
|
|||
|
||||
if MODEM
|
||||
|
||||
config UART_1_NRF_FLOW_CONTROL
|
||||
default y
|
||||
|
||||
config MODEM_UBLOX_SARA
|
||||
default y
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
rx-pin = <36>;
|
||||
rts-pin = <39>;
|
||||
cts-pin = <38>;
|
||||
hw-flow-control;
|
||||
|
||||
sara_r4 {
|
||||
compatible = "ublox,sara-r4";
|
||||
|
|
|
@ -6,7 +6,4 @@ if BOARD_NRF52840DK_NRF52840
|
|||
config GPIO_NRF_P1
|
||||
default y
|
||||
|
||||
config UART_1_NRF_FLOW_CONTROL
|
||||
default y
|
||||
|
||||
endif # BOARD_NRF52840DK_NRF52840
|
||||
|
|
|
@ -55,12 +55,6 @@ config UART_0_NRF_PARITY_BIT
|
|||
help
|
||||
Enable parity bit.
|
||||
|
||||
config UART_0_NRF_FLOW_CONTROL
|
||||
bool "Enable flow control"
|
||||
help
|
||||
Enable flow control. If selected, additionally two pins, RTS and CTS
|
||||
have to be configured.
|
||||
|
||||
config UART_0_NRF_TX_BUFFER_SIZE
|
||||
int "Size of RAM buffer"
|
||||
depends on UART_0_NRF_UARTE
|
||||
|
@ -124,12 +118,6 @@ config UART_1_NRF_PARITY_BIT
|
|||
help
|
||||
Enable parity bit.
|
||||
|
||||
config UART_1_NRF_FLOW_CONTROL
|
||||
bool "Enable flow control"
|
||||
help
|
||||
Enable flow control. If selected, additionally two pins, RTS and CTS
|
||||
have to be configured.
|
||||
|
||||
config UART_1_NRF_TX_BUFFER_SIZE
|
||||
int "Size of RAM buffer"
|
||||
depends on UART_INTERRUPT_DRIVEN
|
||||
|
@ -192,12 +180,6 @@ config UART_2_NRF_PARITY_BIT
|
|||
help
|
||||
Enable parity bit.
|
||||
|
||||
config UART_2_NRF_FLOW_CONTROL
|
||||
bool "Enable flow control"
|
||||
help
|
||||
Enable flow control. If selected, additionally two pins, RTS and CTS
|
||||
have to be configured.
|
||||
|
||||
config UART_2_NRF_TX_BUFFER_SIZE
|
||||
int "Size of RAM buffer"
|
||||
range 1 65535
|
||||
|
@ -259,12 +241,6 @@ config UART_3_NRF_PARITY_BIT
|
|||
help
|
||||
Enable parity bit.
|
||||
|
||||
config UART_3_NRF_FLOW_CONTROL
|
||||
bool "Enable flow control"
|
||||
help
|
||||
Enable flow control. If selected, additionally two pins, RTS and CTS
|
||||
have to be configured.
|
||||
|
||||
config UART_3_NRF_TX_BUFFER_SIZE
|
||||
int "Size of RAM buffer"
|
||||
range 1 65535
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=1024
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
&uart0 {
|
||||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
hw-flow-control;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=n
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_IDLE_STACK_SIZE=256
|
||||
CONFIG_ISR_STACK_SIZE=512
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=1024
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=1024
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=1024
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
compatible = "nordic,nrf-uarte";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
||||
CONFIG_MAIN_STACK_SIZE=1024
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_BT_MAX_CONN=16
|
||||
|
|
|
@ -20,6 +20,3 @@ CONFIG_BOARD_NRF9160DK_INTERFACE1_MCU=y
|
|||
# Enable reset pin on P1.02
|
||||
CONFIG_BOARD_NRF9160DK_NRF52840_RESET=y
|
||||
CONFIG_BOARD_NRF9160DK_NRF52840_RESET_P1_02=y
|
||||
|
||||
# Use UART1 for HCI
|
||||
CONFIG_UART_1_NRF_FLOW_CONTROL=y
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
compatible = "nordic,nrf-uarte";
|
||||
current-speed = <1000000>;
|
||||
status = "okay";
|
||||
hw-flow-control;
|
||||
tx-pin = <17>;
|
||||
rx-pin = <20>;
|
||||
rts-pin = <15>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue