mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw/: added "HardMAC" support (not yet using the TRX's MAC)
- include/atusb/ep0.h (enum atspi_requests), ep0.c (my_setup): added new "HardMAC" requests ATUSB_RX_MODE and ATUSB_TX - mac.h, mac.c: basic "HardMAC" procedure - board_app.c (INT0_vect): call MAC-specific interrupt handler if provided - Makefile (OBJS): added mac.o
This commit is contained in:
@@ -22,8 +22,9 @@
|
||||
|
||||
#include "usb.h"
|
||||
#include "at86rf230.h"
|
||||
#include "board.h"
|
||||
#include "spi.h"
|
||||
#include "mac.h"
|
||||
#include "board.h"
|
||||
|
||||
|
||||
static volatile uint32_t timer_h = 0; /* 2^(16+32) / 8 MHz = ~1.1 years */
|
||||
@@ -155,6 +156,10 @@ uint8_t irq_serial;
|
||||
|
||||
ISR(INT0_vect)
|
||||
{
|
||||
if (mac_irq) {
|
||||
mac_irq();
|
||||
return;
|
||||
}
|
||||
if (eps[1].state == EP_IDLE) {
|
||||
led(1);
|
||||
irq_serial = (irq_serial+1) | 0x80;
|
||||
|
||||
Reference in New Issue
Block a user