Merge pull request #11877 from OTAkeys/feat/gpio-flashing

makefiles: add support for sysfs gpio debug adapter
This commit is contained in:
benpicco 2019-09-11 18:00:31 +02:00 committed by GitHub
commit b14e08cce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
# sysfs GPIO debug adapter
SWCLK_PIN ?= 21
SWDIO_PIN ?= 20
SRST_PIN ?= 16
OPENOCD_ADAPTER_INIT ?= \
-c 'interface sysfsgpio' \
-c 'transport select swd' \
-c 'sysfsgpio_swd_nums $(SWCLK_PIN) $(SWDIO_PIN)' \
-c 'sysfsgpio_srst_num $(SRST_PIN)' \
-c 'adapter_nsrst_delay 100' \
-c 'adapter_nsrst_assert_width 100'
export OPENOCD_ADAPTER_INIT