diff --git a/tests/rftest-rx.c b/tests/rftest-rx.c index 5837608c1..f6de78361 100644 --- a/tests/rftest-rx.c +++ b/tests/rftest-rx.c @@ -25,6 +25,10 @@ void main(void) { maca_init(); + /* sets up tx_on, should be a board specific item */ + *GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2)); + *GPIO_PAD_DIR_SET1 = (1 << (44-32)); + set_power(0x0f); /* 0dbm */ set_channel(0); /* channel 11 */ diff --git a/tests/rftest-tx.c b/tests/rftest-tx.c index 862b8ed52..ee9d4d55c 100644 --- a/tests/rftest-tx.c +++ b/tests/rftest-tx.c @@ -11,7 +11,7 @@ /* 2 bytes are the FCS */ /* therefore 125 is the max payload length */ #define PAYLOAD_LEN 16 -#define DELAY 100000 +#define DELAY 1000000 void fill_packet(volatile packet_t *p) { static volatile uint8_t count=0; @@ -54,7 +54,7 @@ void main(void) { /* sets up tx_on, should be a board specific item */ *GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2)); - *GPIO_PAD_DIR0 = *GPIO_PAD_DIR0 | (1<<(44-32)); + *GPIO_PAD_DIR_SET1 = (1 << (44-32)); print_welcome("rftest-tx");