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

Implemented AT86RF230 reset and access modes. (Completely untested.)

- fw/atspi/at86rf230.h: AT86RF230 SPI protocol commands and buffer sizes
- fw/atspi/atspi.c (init_io): set all IOs to their initial state
- fw/include/atspi/ep0.h, fw/atspi/ep0.c (my_setup): command ATSPI_RF_RESET
  to reset the AT86RF230
- fw/include/atspi/ep0.h, fw/atspi/ep0.c (my_setup): commands
  ATSPI_{REG,BUF,SRAM}_{READ,WRITE} for the six SPI access modes
This commit is contained in:
Werner Almesberger
2010-08-20 01:50:51 -03:00
parent 3c87d9f8c7
commit 5447951c6e
4 changed files with 206 additions and 3 deletions

View File

@@ -17,10 +17,19 @@
/*
* Direction bRequest wValue wIndex wLength
*
* ->host ATSPI_ID 0 0 3
* host-> ATSPI_RESET 0 0 0
* ->host ATSPI_ID - - 3
* host-> ATSPI_RESET - - 0
* ->host ATSPI_BUILD_NUMBER - - 2
* ->host ATSPI_BUILD_DATE - - #bytes
*
* host-> ATSPI_RF_RESET - -
*
* host-> ATSPI_REG_WRITE value addr 0
* ->host ATSPI_REG_READ - addr 1
* host-> ATSPI_BUF_WRITE - - #bytes
* ->host ATSPI_BUF_READ - - #bytes
* host-> ATSPI_SRAM_WRITE - addr #bytes
* ->host ATSPI_SRAM_READ - addr #bytes
*/
/*
@@ -55,6 +64,13 @@ enum atspi_requests {
ATSPI_RESET,
ATSPI_BUILD_NUMBER,
ATSPI_BUILD_DATE,
ATSPI_RF_RESET = 0x10,
ATSPI_REG_WRITE = 0x20,
ATSPI_REG_READ,
ATSPI_BUF_WRITE,
ATSPI_BUF_READ,
ATSPI_SRAM_WRITE,
ATSPI_SRAM_READ,
};