\brief Definitions for the SPI application.
*/
+#ifndef SPI_H
+#define SPI_H
+
+#include "app.h"
+
+#define SPI 0x01
//Pins and I/O
//#define SS BIT0
#define SETRST P2OUT|=RST
#define CLRRST P2OUT&=~RST
-
//! Set up the pins for SPI mode.
void spisetup();
unsigned char spiflash_status();
//! Erase a sector.
void spiflash_erasesector(unsigned long adr);
+
+extern app_t const spi_app;
+
+#endif