Searched refs:spi_byte (Results 1 – 1 of 1) sorted by relevance
69 unsigned char spi_byte; /* Data Byte */ in rtc_get() local85 spi_byte = soft_spi_read (); /* Read Hours into temporary value */ in rtc_get()86 if (spi_byte & 0x40) { in rtc_get()88 if (spi_byte & 0x20) { in rtc_get()90 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) + 11; in rtc_get()93 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) - 1; in rtc_get()97 tmp->tm_hour = (bcd2bin (spi_byte & 0x3F)); in rtc_get()247 unsigned char spi_byte = 0; /* Return value, assume success */ in soft_spi_read() local259 spi_byte |= bitpos; /* Set data accordingly */ in soft_spi_read()265 return spi_byte; /* Return the byte read */ in soft_spi_read()
Completed in 2 milliseconds