2 * fw/spi.c - ATmega8 family SPI I/O
4 * Written 2011, 2013 by Werner Almesberger
5 * Copyright 2011, 2013 Werner Almesberger
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
23 uint8_t spi_io(uint8_t v)
25 // while (!(UCSR1A & 1 << UDRE1));
34 // while (!(UCSR1A & 1 << TXC1));
39 void spi_recv_block(uint8_t *buf, uint8_t n)