This is an automated email from Gerrit.

Oleksij Rempel (li...@rempel-privat.de) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4194

-- gerrit

commit 247b6c463eae50aac92ca5a7686fd2e95b22183f
Author: Oleksij Rempel <li...@rempel-privat.de>
Date:   Sun Aug 6 09:50:05 2017 +0200

    target: atheros_ar9344: add simple uart0 test
    
    in some cases we need something to test if uart is actually
    properly connected.
    
    Change-Id: I5a16b053164b34bb30ae8370753be12887a85c51
    Signed-off-by: Oleksij Rempel <li...@rempel-privat.de>

diff --git a/tcl/target/atheros_ar9344.cfg b/tcl/target/atheros_ar9344.cfg
index f273fb0..b698f25 100644
--- a/tcl/target/atheros_ar9344.cfg
+++ b/tcl/target/atheros_ar9344.cfg
@@ -14,3 +14,26 @@ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME
+
+proc test_ar9344_uart0_tx {} {
+       echo "configuring uart0.."
+       mww 0xb802000c 0x87
+       mww 0xb8020000 0x15
+       mww 0xb8020004 0
+       mww 0xb802000c 7
+       mww 0xb8020004 0
+
+       echo "send message: hallo world"
+       mww 0xb8020000 0x68
+       mww 0xb8020000 0x65
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x6f
+       mww 0xb8020000 0x20
+       mww 0xb8020000 0x77
+       mww 0xb8020000 0x6f
+       mww 0xb8020000 0x72
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x64
+       mww 0xb8020000 0x0a
+}

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to