Remove spi_word and replace with spi_deselect
Since the goal is to have the MAX3421E working, which uses multiple 8 bit transfers, we should support multiple 8 bit transfers instead of trying to use 16 bit transfers. When using spi_byte(), the device is automatically selected. After you have made as many transfers as you want, you must deselect the device with spi_deselect().
This commit is contained in:
@@ -23,13 +23,7 @@ int main(void)
|
||||
}
|
||||
printf("Done! %x\n\n", retval);
|
||||
|
||||
printf("Starting spi_word test...\n");
|
||||
retval = spi_word(0xa5a5);
|
||||
if (retval != 0) {
|
||||
printf("Expected 0 return value from spi_word.\n");
|
||||
printf("Got: %x\n\n", retval);
|
||||
return 1;
|
||||
}
|
||||
printf("Done! %x\n", retval);
|
||||
printf("Starting spi_deselect test...\n");
|
||||
spi_deselect();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user