//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,
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;