uart1: working rts/cts on arduino header

This commit is contained in:
Dirk Helbig
2024-06-25 07:55:37 +02:00
parent 03a1e9d212
commit c2a901a6c6
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -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 |
+11
View File
@@ -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>;
+1
View File
@@ -6,6 +6,7 @@
&uart1 {
status = "okay";
current-speed = <1000000>;
hw-flow-control;
};
/ {