33 #define F300_DATA GPIO_0
34 #define F300_RESET GPIO_1
35 #define F300_CLK GPIO_2
36 #define F300_BUSY GPIO_3
58 for (i = 0; i < 8; i++) {
61 f300_set_line(dev,
F300_DATA, (dta & 0x80) >> 7);
73 for (i = 0; i < 8; i++) {
93 for (i = 0; i < buf[0]; i++)
96 buf[1 + buf[0]] =
temp;
108 f300_send_byte(dev, 0xe0);
113 for (i = 0; i <
temp; i++)
114 f300_send_byte(dev, buf[i]);
121 for (i = 0; ((i < 8) & (temp == 0)); i++) {
134 f300_send_byte(dev, 0xe1);
136 temp = f300_get_byte(dev);
140 for (i = 0; i < (temp + 1); i++)
176 return f300_xfer(fe, buf);