From 542c92830165534244b6375cc3866280d562daee Mon Sep 17 00:00:00 2001 From: Carlos Camargo Date: Tue, 30 Mar 2010 21:22:56 -0500 Subject: [PATCH] Change examples to new Hardware --- Examples/sram/src/jz_init_sram.c | 10 +++++----- Examples/sram/src/jz_test_gpio.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Examples/sram/src/jz_init_sram.c b/Examples/sram/src/jz_init_sram.c index d408e67..46f0616 100644 --- a/Examples/sram/src/jz_init_sram.c +++ b/Examples/sram/src/jz_init_sram.c @@ -23,8 +23,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "jz47xx_gpio.h" #include "jz47xx_mmap.h" -#define TEST_PORT JZ_GPIO_PORT_B -#define TEST_PIN 26 +#define CS2_PORT JZ_GPIO_PORT_B +#define CS2_PIN 26 int main () @@ -33,15 +33,15 @@ main () JZ_PIO *pio; JZ_REG *virt_addr; - pio = jz_gpio_map (TEST_PORT); - jz_gpio_as_func (pio, TEST_PIN, 0); + pio = jz_gpio_map (CS2_PORT); + jz_gpio_as_func (pio, CS2_PIN, 0); virt_addr = (JZ_REG *) jz_mmap (0x13010000) + 0x18; if (*virt_addr != 0xFFF7700) { // 0 WS, 8 bits *virt_addr = 0xFFF7700; - printf ("Configuring CS3 16 bits and 1 WS\n"); + printf ("Configuring CS2 8 bits \n"); } else printf ("CS3, already configured\n"); diff --git a/Examples/sram/src/jz_test_gpio.c b/Examples/sram/src/jz_test_gpio.c index a9ef404..9338c10 100644 --- a/Examples/sram/src/jz_test_gpio.c +++ b/Examples/sram/src/jz_test_gpio.c @@ -23,8 +23,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "jz47xx_gpio.h" -#define TEST_PORT JZ_GPIO_PORT_D -#define TEST_PIN 23 +#define TEST_PORT JZ_GPIO_PORT_C +#define TEST_PIN 17 int main ()