io.h is deprecated, so now msp430.h is included instead.
[goodfet] / firmware / apps / radios / nrf.c
index 0b1b6bd..76c396c 100644 (file)
@@ -9,7 +9,7 @@
 #include "command.h"
 
 #include <signal.h>
-#include <io.h>
+#include <msp430.h>
 #include <iomacros.h>
 
 #include "nrf.h"
@@ -43,8 +43,8 @@ app_t const nrf_app = {
 //! Set up the pins for NRF mode.
 void nrfsetup(){
   SETSS;
-  P5DIR&=~MISO;
-  P5DIR|=MOSI+SCK;
+  SPIDIR&=~MISO;
+  SPIDIR|=MOSI+SCK;
   DIRSS;
   DIRCE;