uart1: working rts/cts on arduino header
This commit is contained in:
@@ -17,3 +17,11 @@ west build -b nrf5340_audio_dk_nrf5340_cpuapp -- -DEXTRA_DTC_OVERLAY_FILE=uart1.
|
||||
```sh
|
||||
west build -b nrf5340_audio_dk_nrf5340_cpuapp -- -DEXTRA_DTC_OVERLAY_FILE=uart1.overlay -DOVERLAY_CONFIG=debug.conf
|
||||
```
|
||||
# pinout for nrf5340_audio_dk for uart1
|
||||
|
||||
| PIN | Arduino | nrf |
|
||||
|:---:|:-------:|:-----:|
|
||||
| TX | D0 | P1.09 |
|
||||
| RX | D1 | P1.08 |
|
||||
| RTS | D7 | P1.11 |
|
||||
| CTS | D8 | P1.10 |
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
/ {
|
||||
host_interface {
|
||||
compatible = "gpio-outputs";
|
||||
status = "okay";
|
||||
timesync: pin_0 {
|
||||
gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>;
|
||||
label = "Controller to host timesync pin";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
compatible = "nordic,nrf-uarte";
|
||||
current-speed = <1000000>;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
current-speed = <1000000>;
|
||||
hw-flow-control;
|
||||
};
|
||||
|
||||
/ {
|
||||
|
||||
Reference in New Issue
Block a user