X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Firis%2Fchips%2Frf230%2FHplRF2xxP.nc;h=560fbe6fa6b3bb91ed005146da8de0a905e05fe1;hb=5a67cf193fbc146446bc503fe07b02412ebb211e;hp=a97f81c67abdcf78a7d2e0888d13dd47e5f27e31;hpb=857a829a9dd7830efbf85b39aae30698c1059adb;p=tinyos-2.x.git diff --git a/tos/platforms/iris/chips/rf230/HplRF2xxP.nc b/tos/platforms/iris/chips/rf230/HplRF2xxP.nc index a97f81c6..560fbe6f 100644 --- a/tos/platforms/iris/chips/rf230/HplRF2xxP.nc +++ b/tos/platforms/iris/chips/rf230/HplRF2xxP.nc @@ -21,16 +21,12 @@ * Author: Miklos Maroti */ -#include "Atm128Spi.h" - module HplRF2xxP { provides { interface GpioCapture as IRQ; interface Init as PlatformInit; - - interface FastSpiByte; } uses @@ -83,43 +79,4 @@ implementation { call Capture.stop(); } - - inline async command void FastSpiByte.splitWrite(uint8_t data) - { - // the SPI must have been started, so do not waste time here - // SET_BIT(SPCR, SPE); - - SPDR = data; - } - - inline async command uint8_t FastSpiByte.splitRead() - { - while( !( SPSR & 0x80 ) ) - ; - return SPDR; - } - - inline async command uint8_t FastSpiByte.splitReadWrite(uint8_t data) - { - uint8_t b; - - while( !( SPSR & 0x80 ) ) - ; - b = SPDR; - SPDR = data; - - return b; - } - - inline async command uint8_t FastSpiByte.write(uint8_t data) - { - // the SPI must have been started, so do not waste time here - // SET_BIT(SPCR, SPE); - - SPDR = data; - while( !( SPSR & 0x80 ) ) - ; - - return SPDR; - } }