Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-11-07,master
commit 85278319a9a39e24fa0981d8bd247528414c6ce1 Author: Sven Eckelmann sven@narfation.org Date: Mon Oct 14 11:43:52 2019 +0000
doc: open-mesh/Kernel_debugging_with_kgdb
85278319a9a39e24fa0981d8bd247528414c6ce1 open-mesh/Kernel_debugging_with_kgdb.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/open-mesh/Kernel_debugging_with_kgdb.textile b/open-mesh/Kernel_debugging_with_kgdb.textile index e4573ba..9f742ba 100644 --- a/open-mesh/Kernel_debugging_with_kgdb.textile +++ b/open-mesh/Kernel_debugging_with_kgdb.textile @@ -322,14 +322,14 @@ There are various boards on ar71xx which use external watchdogs chips via GPIO. But luckily, we can just write manually to the ar71xx registers (every n seconds). We have two possible ways:
* write to the clear/set registers -** set bit n in register GPIO_SET (0x1804000C) to set output value to 1 -** set bit n in register GPIO_CLEAR (0x18040010) to set output value to 0 +** set bit n in register GPIO_SET (0x1804000C) to set output value to 1 for GPIO n +** set bit n in register GPIO_CLEAR (0x18040010) to set output value to 0 for GPIO n * overwrite complete GPIO_OUT (0x18040008) register (which might modify more GPIO bits then required)
We will only demonstrate this here for GPIO 12 with GPIO_SET/GPIO_CLEAR.
<pre> -# check where 0x18040000 is mapped to +# check where iomem 018040000-180400ff is mapped to (gdb) print ath79_gpio_base $1 = (void *) 0xb8040000