did something sensible to the leds
The buffered packets made the indirect indicators misleading --- now they match.
This commit is contained in:
parent
f64e689d2c
commit
1ca5cf698a
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
#define LED LED_GREEN
|
#define LED LED_GREEN
|
||||||
|
|
||||||
void maca_rx_callback(volatile packet_t *p)
|
void maca_rx_callback(volatile packet_t *p) {
|
||||||
{
|
(void)p;
|
||||||
(void)p; /* surpress unused warning */
|
toggle_gpio0(LED);
|
||||||
toggle_gpio0(LED);
|
toggle_gpio0(LED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,10 @@ void main(void) {
|
||||||
*GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2));
|
*GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2));
|
||||||
*GPIO_PAD_DIR_SET1 = (1 << (44-32));
|
*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_power(0x0f); /* 0dbm */
|
||||||
set_channel(0); /* channel 11 */
|
set_channel(0); /* channel 11 */
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,6 @@ void main(void) {
|
||||||
if(p) {
|
if(p) {
|
||||||
fill_packet(p);
|
fill_packet(p);
|
||||||
|
|
||||||
toggle_gpio0(LED);
|
|
||||||
printf("rftest-tx --- ");
|
printf("rftest-tx --- ");
|
||||||
print_packet(p);
|
print_packet(p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue