1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atusb/fw/: reset MAC state on ATUSB_RF_RESET

This commit is contained in:
Werner Almesberger
2013-02-13 09:30:21 -03:00
parent 276613da51
commit 852aaf1b66
3 changed files with 13 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ static uint8_t reg_read(uint8_t reg)
spi_begin();
spi_send(AT86RF230_REG_READ | reg);
value= spi_recv();
value = spi_recv();
spi_end();
return value;
@@ -167,3 +167,11 @@ int mac_tx(uint16_t flags, uint16_t len)
usb_recv(&eps[0], tx_buf, len, do_tx, NULL);
return 1;
}
void mac_reset(void)
{
mac_irq = NULL;
txing = 0;
queued_tx_ack = 0;
}