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
|
# enable uart driver
|
||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=n
|
|
||||||
|
|
||||||
# enable console
|
# enable console
|
||||||
CONFIG_CONSOLE=y
|
CONFIG_CONSOLE=y
|
||||||
|
|
|
@ -27,9 +27,6 @@ config BT_CTLR
|
||||||
|
|
||||||
if MODEM
|
if MODEM
|
||||||
|
|
||||||
config UART_1_NRF_FLOW_CONTROL
|
|
||||||
default y
|
|
||||||
|
|
||||||
config MODEM_UBLOX_SARA
|
config MODEM_UBLOX_SARA
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
rx-pin = <36>;
|
rx-pin = <36>;
|
||||||
rts-pin = <39>;
|
rts-pin = <39>;
|
||||||
cts-pin = <38>;
|
cts-pin = <38>;
|
||||||
|
hw-flow-control;
|
||||||
|
|
||||||
sara_r4 {
|
sara_r4 {
|
||||||
compatible = "ublox,sara-r4";
|
compatible = "ublox,sara-r4";
|
||||||
|
|
|
@ -6,7 +6,4 @@ if BOARD_NRF52840DK_NRF52840
|
||||||
config GPIO_NRF_P1
|
config GPIO_NRF_P1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UART_1_NRF_FLOW_CONTROL
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # BOARD_NRF52840DK_NRF52840
|
endif # BOARD_NRF52840DK_NRF52840
|
||||||
|
|
|
@ -55,12 +55,6 @@ config UART_0_NRF_PARITY_BIT
|
||||||
help
|
help
|
||||||
Enable parity bit.
|
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
|
config UART_0_NRF_TX_BUFFER_SIZE
|
||||||
int "Size of RAM buffer"
|
int "Size of RAM buffer"
|
||||||
depends on UART_0_NRF_UARTE
|
depends on UART_0_NRF_UARTE
|
||||||
|
@ -124,12 +118,6 @@ config UART_1_NRF_PARITY_BIT
|
||||||
help
|
help
|
||||||
Enable parity bit.
|
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
|
config UART_1_NRF_TX_BUFFER_SIZE
|
||||||
int "Size of RAM buffer"
|
int "Size of RAM buffer"
|
||||||
depends on UART_INTERRUPT_DRIVEN
|
depends on UART_INTERRUPT_DRIVEN
|
||||||
|
@ -192,12 +180,6 @@ config UART_2_NRF_PARITY_BIT
|
||||||
help
|
help
|
||||||
Enable parity bit.
|
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
|
config UART_2_NRF_TX_BUFFER_SIZE
|
||||||
int "Size of RAM buffer"
|
int "Size of RAM buffer"
|
||||||
range 1 65535
|
range 1 65535
|
||||||
|
@ -259,12 +241,6 @@ config UART_3_NRF_PARITY_BIT
|
||||||
help
|
help
|
||||||
Enable parity bit.
|
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
|
config UART_3_NRF_TX_BUFFER_SIZE
|
||||||
int "Size of RAM buffer"
|
int "Size of RAM buffer"
|
||||||
range 1 65535
|
range 1 65535
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=1024
|
CONFIG_MAIN_STACK_SIZE=1024
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
&uart0 {
|
&uart0 {
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
|
hw-flow-control;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=n
|
|
||||||
CONFIG_MAIN_STACK_SIZE=512
|
CONFIG_MAIN_STACK_SIZE=512
|
||||||
CONFIG_IDLE_STACK_SIZE=256
|
CONFIG_IDLE_STACK_SIZE=256
|
||||||
CONFIG_ISR_STACK_SIZE=512
|
CONFIG_ISR_STACK_SIZE=512
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=512
|
CONFIG_MAIN_STACK_SIZE=512
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=512
|
CONFIG_MAIN_STACK_SIZE=512
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=1024
|
CONFIG_MAIN_STACK_SIZE=1024
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=1024
|
CONFIG_MAIN_STACK_SIZE=1024
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=1024
|
CONFIG_MAIN_STACK_SIZE=1024
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uart";
|
compatible = "nordic,nrf-uart";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
compatible = "nordic,nrf-uarte";
|
compatible = "nordic,nrf-uarte";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_UART_0_NRF_FLOW_CONTROL=y
|
|
||||||
CONFIG_MAIN_STACK_SIZE=1024
|
CONFIG_MAIN_STACK_SIZE=1024
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
|
|
@ -20,6 +20,3 @@ CONFIG_BOARD_NRF9160DK_INTERFACE1_MCU=y
|
||||||
# Enable reset pin on P1.02
|
# Enable reset pin on P1.02
|
||||||
CONFIG_BOARD_NRF9160DK_NRF52840_RESET=y
|
CONFIG_BOARD_NRF9160DK_NRF52840_RESET=y
|
||||||
CONFIG_BOARD_NRF9160DK_NRF52840_RESET_P1_02=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";
|
compatible = "nordic,nrf-uarte";
|
||||||
current-speed = <1000000>;
|
current-speed = <1000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
hw-flow-control;
|
||||||
tx-pin = <17>;
|
tx-pin = <17>;
|
||||||
rx-pin = <20>;
|
rx-pin = <20>;
|
||||||
rts-pin = <15>;
|
rts-pin = <15>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue