From 9f075dcf1aa1e0ac0f76f4d61198dae5fe4e2bf7 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 20 May 2009 20:12:39 -0400 Subject: [PATCH] cause TX_ON to flash when transmitting --- tests/rftest-tx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/rftest-tx.c b/tests/rftest-tx.c index 854e946ff..c4f609a4e 100644 --- a/tests/rftest-tx.c +++ b/tests/rftest-tx.c @@ -1,4 +1,5 @@ #define GPIO_FUNC_SEL0 0x80000018 /* GPIO 15 - 0; 2 bit blocks */ +#define GPIO_FUNC_SEL2 0x80000020 /* GPIO 47 - 32; 2 bit blocks */ #define BASE_UART1 0x80005000 #define UART1_CON 0x80005000 @@ -18,7 +19,7 @@ #define reg(x) (*(volatile uint32_t *)(x)) -#define DELAY 200000 +#define DELAY 100000 #define DATA 0x00401000; #define NL "\033[K\r\n" @@ -59,7 +60,7 @@ uint32_t ackBox[10]; maca_control = (control_prm | control_asap | control_seq_rx); \ }while(FALSE) -#define PAYLOAD_LEN 96 /* not including the extra 4 bytes for len+fcs+somethingelse */ +#define PAYLOAD_LEN 16 /* not including the extra 4 bytes for len+fcs+somethingelse */ /* maca dmatx needs extra 4 bytes for checksum */ /* needs + 4 bytes for len(1 byte) + fcs(2 bytes) + somethingelse */ #define command_xcvr_tx() \ @@ -168,6 +169,9 @@ void main(void) { /* puts("reserved modem_base\n\r"); */ /* dump_regs(0x80009200, 192); */ + reg(GPIO_FUNC_SEL2) = (0x01 << ((44-16*2)*2)); + reg(GPIO_PAD_DIR0) = reg(GPIO_PAD_DIR0) | (1<<(44-32)); + fill_data(); command_xcvr_tx();