=================================================================== RCS file: /cvs/funnyos/dev/bus_spi.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- funnyos/dev/bus_spi.c 2007/12/19 16:05:53 1.1 +++ funnyos/dev/bus_spi.c 2007/12/21 17:40:29 1.2 @@ -1,12 +1,26 @@ /* - * $Id: bus_spi.c,v 1.1 2007/12/19 16:05:53 nbrk Exp $ + * $Id: bus_spi.c,v 1.2 2007/12/21 17:40:29 nbrk Exp $ */ #include #include uint8_t -spi_bus_transmit(struct spi_bus_handle *sbh, uint8_t data) +spi_transmit(struct spi_bus_handle *sbh, uint8_t data) { return(sbh->sb_transmitfunc(sbh->sb_dd, data)); +} + + +void +spi_cs_low(struct spi_bus_handle *sbh) +{ + sbh->sb_cslowfunc(sbh->sb_dd); +} + + +void +spi_cs_high(struct spi_bus_handle *sbh) +{ + sbh->sb_cshighfunc(sbh->sb_dd); }