From 800096f9a0b5840e4bb628806e60f2c2310579a9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 11 Sep 2014 19:25:55 +0800 Subject: [PATCH] soc/runtime: fix DDS reset --- soc/runtime/dds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/soc/runtime/dds.c b/soc/runtime/dds.c index cb4ddce61..8cfeb08ce 100644 --- a/soc/runtime/dds.c +++ b/soc/runtime/dds.c @@ -19,9 +19,8 @@ void dds_init(void) { int i; - DDS_WRITE(DDS_GPIO, 1 << 7); - for(i=0;i<8;i++) { + DDS_WRITE(DDS_GPIO, i | (1 << 7)); DDS_WRITE(DDS_GPIO, i); DDS_WRITE(0x00, 0x78); DDS_WRITE(0x01, 0x00);