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

Added interrupt polling support for atusb.

- atrf/fw/include/atspi/ep0.h enum atspi_requests), atrf/fw/atspi/ep0.c
  (my_setup): new command ATSPI_POLL_INT to poll IRQ_RF
- atrf/fw/atspi/ep0.c (my_setup): ATSPI_BUILD sent one byte too many
- tools/lib/atusb.c (atusd_interrupt, atusb_driver): implemented interrupt
  polling
- tools/lib/atusd.c: added section title for the RF interrupt function
This commit is contained in:
Werner Almesberger
2010-09-09 20:22:45 -03:00
parent 4df6d2c2f9
commit b6a80ba3dd
4 changed files with 39 additions and 2 deletions

View File

@@ -21,7 +21,8 @@
* ->host ATSPI_BUILD - - #bytes
* host-> ATSPI_RESET - - 0
*
* host-> ATSPI_RF_RESET - -
* host-> ATSPI_RF_RESET - - 0
* ->host ATSPI_POLL_INT - - 1
*
* host-> ATSPI_REG_WRITE value addr 0
* ->host ATSPI_REG_READ - addr 1
@@ -63,6 +64,7 @@ enum atspi_requests {
ATSPI_BUILD,
ATSPI_RESET,
ATSPI_RF_RESET = 0x10,
ATSPI_POLL_INT,
ATSPI_REG_WRITE = 0x20,
ATSPI_REG_READ,
ATSPI_BUF_WRITE,