did something sensible to the leds

The buffered packets made the indirect indicators misleading --- now
they match.
This commit is contained in:
Mariano Alvira 2010-03-08 18:39:08 -05:00
parent f64e689d2c
commit 1ca5cf698a
2 changed files with 9 additions and 6 deletions

View file

@ -7,11 +7,11 @@
#define LED LED_GREEN
void maca_rx_callback(volatile packet_t *p)
{
(void)p; /* surpress unused warning */
void maca_rx_callback(volatile packet_t *p) {
(void)p;
toggle_gpio0(LED);
}
toggle_gpio0(LED);
}
void main(void) {
volatile packet_t *p;
@ -35,6 +35,10 @@ void main(void) {
*GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2));
*GPIO_PAD_DIR_SET1 = (1 << (44-32));
/* sets up rx_on, should be a board specific item */
*GPIO_FUNC_SEL2 = (0x02 << ((45-16*2)*2));
*GPIO_PAD_DIR_SET1 = (1 << (45-32));
set_power(0x0f); /* 0dbm */
set_channel(0); /* channel 11 */

View file

@ -64,10 +64,9 @@ void main(void) {
if(p) {
fill_packet(p);
toggle_gpio0(LED);
printf("rftest-tx --- ");
print_packet(p);
tx_packet(p);
for(i=0; i<DELAY; i++) { continue; }