X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fspi.h;h=590db0e40e1b1f9c7f048bdf4210ebda6a5d1b08;hp=02e548ae5ed3f2f72da71417776ca9ccd2a0a7e9;hb=496a0185c0bc88e6ccb768b7ff73055edc3cf4c3;hpb=796e25ceef9624adcb1f4f178e02bffdf98d3cd6 diff --git a/firmware/include/spi.h b/firmware/include/spi.h index 02e548a..590db0e 100644 --- a/firmware/include/spi.h +++ b/firmware/include/spi.h @@ -16,6 +16,12 @@ #define CLRCLK P5OUT&=~SCK #define READMISO (P5IN&MISO?1:0) +#define SETTST P4OUT|=TST +#define CLRTST P4OUT&=~TST +#define SETRST P2OUT|=RST +#define CLRRST P2OUT&=~RST + + //! Set up the pins for SPI mode. void spisetup();