TI Launchpad patch from Peter Lorenzen, edited to ease the mergequake.
[goodfet] / firmware / apps / spi / spi.c
index aa3c5ec..c880e8c 100644 (file)
@@ -5,7 +5,7 @@
 
 //Higher level left to client application.
 
-#include "platform.h"
+
 #include "command.h"
 
 #include <signal.h>
 
 #include "spi.h"
 
+#define SPIAPPLICATION
+
+#include "platform.h"
+
 //! Handles a monitor command.
 void spi_handle_fn( uint8_t const app,
                                        uint8_t const verb,
@@ -373,8 +377,8 @@ void spi_handle_fn( uint8_t const app,
                SETSS;  //Raise !SS to end transaction.
 
                while(spiflash_status()&0x01)//while busy
-               PLEDOUT^=PLEDPIN;
-               PLEDOUT&=~PLEDPIN;
+                       led_toggle();
+               led_off();
 
                txdata(app,verb,0);
                break;