mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
turn on tx_on
This commit is contained in:
parent
0f9f67d002
commit
d097647edd
@ -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 */
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user