turn on tx_on

This commit is contained in:
Mariano Alvira 2010-03-08 17:36:42 -05:00
parent 0f9f67d002
commit d097647edd
2 changed files with 6 additions and 2 deletions

View File

@ -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 */

View File

@ -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");