Add serial driver and irq support

This commit is contained in:
Byron Lathi
2023-11-28 22:54:26 -08:00
parent 3524892f80
commit fd9ccdbce4
5 changed files with 135 additions and 7 deletions

View File

@@ -339,12 +339,16 @@ token = 0xFF - response timeout
*******************************************************************************/
uint8_t SD_writeSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *token)
{
(void)addr;
(void)buf;
(void)token;
/*
uint16_t readAttempts;
uint8_t res1, read;
uint16_t i;
/*
// set token to none
*token = 0xFF;
@@ -391,9 +395,11 @@ uint8_t SD_writeSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *token)
spi_deselect(0);
spi_exchange(0xFF);
return res1;
*/
return res1;
return 0;
}
/*******************************************************************************