Menu

[6834f0]: / tcl / interface / dln-2-gpiod.cfg  Maximize  Restore  History

Download this file

31 lines (26 with data), 940 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-License-Identifier: GPL-2.0-or-later
# Use DLN-2 GPIO through linuxgpiod
#
# +-----------+-------------+-------------+
# | signal | DLN-2 | gpio offset |
# +-----------+-------------+-------------+
# | nSRST | J3.1 (PA0) | 0 |
# | TDO | J3.2 (PA1) | 1 |
# | TCK/SWCLK | J3.3 (PA2) | 2 |
# | TMS/SWDIO | J3.4 (PA3) | 3 |
# | TDI | J3.5 (PA4) | 4 |
# | nTRST | J3.6 (PA5) | 5 |
# | LED | J3.7 (PA6) | 6 |
# | GND | J3.12 (GND) | |
# +-----------+-------------+-------------+
adapter driver linuxgpiod
adapter gpio srst 0 -chip 0
adapter gpio tdo 1 -chip 0
adapter gpio tck 2 -chip 0
adapter gpio swclk 2 -chip 0
adapter gpio tms 3 -chip 0
adapter gpio swdio 3 -chip 0
adapter gpio tdi 4 -chip 0
adapter gpio trst 5 -chip 0
adapter gpio led 6 -chip 0
reset_config trst_and_srst separate srst_push_pull
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.