]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/RF230LayerP.nc
Allow possibly multiple slaves for the Atmega128 SPI bus.
[tinyos-2.x.git] / tos / chips / rf230 / RF230LayerP.nc
index 153b9ee1679f665cd58288b7f4f5729022c2ef35..d9d06d5e0fd2de04b0bdd1280437ad8fe5a2a1db 100644 (file)
@@ -236,6 +236,7 @@ implementation
        event void SpiResource.granted()
        {
                // TODO: this should not be here, see my comment in HplRF230C.nc
+               call SELN.makeOutput();
                call SELN.set();
 
                if( state == STATE_P_ON )
@@ -255,6 +256,7 @@ implementation
                if( call SpiResource.immediateRequest() == SUCCESS )
                {
                        // TODO: this should not be here, see my comment in HplRF230C.nc
+                       call SELN.makeOutput();
                        call SELN.set();
 
                        return TRUE;