for (bit = 0; bit < 8; bit++) {
/* write MOSI on trailing edge of previous clock */
if (byte & 0x80)
- SETMOSI;
+ {SETMOSI;}
else
- CLRMOSI;
+ {CLRMOSI;}
byte <<= 1;
if(bit==7)
for (bit = 0; bit < 16; bit++) {
/* write MOSI on trailing edge of previous clock */
if (word & 0x8000)
- SETMOSI;
+ {SETMOSI;}
else
- CLRMOSI;
+ {CLRMOSI;}
word <<= 1;
if(bit==15)