X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fattiny%2Fao_spi_attiny.c;h=506ebf1550d84b1ee4ddec58045f175bc7fc4cd1;hb=464d43fc0a37dbf1f488bdacc97f5e8179d690a1;hp=f63eb651286cbafb6b7f6d7694ee5d7d9bcbe9f3;hpb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;p=fw%2Faltos diff --git a/src/attiny/ao_spi_attiny.c b/src/attiny/ao_spi_attiny.c index f63eb651..506ebf15 100644 --- a/src/attiny/ao_spi_attiny.c +++ b/src/attiny/ao_spi_attiny.c @@ -82,7 +82,7 @@ ao_spi_transfer(uint8_t i) * so using interrupts would take way too long */ void -ao_spi_send_bus(void __xdata *block, uint16_t len) __reentrant +ao_spi_send_bus(void *block, uint16_t len) { uint8_t *d = block; @@ -95,7 +95,7 @@ ao_spi_send_bus(void __xdata *block, uint16_t len) __reentrant * Poll, sending zeros and reading data back */ void -ao_spi_recv_bus(void __xdata *block, uint16_t len) __reentrant +ao_spi_recv_bus(void *block, uint16_t len) { uint8_t *d = block; @@ -117,7 +117,7 @@ ao_spi_init(void) #else USICR = SPI_USICR_FAST_2; #endif - SPI_DIR &= ~(1 << DDB0); /* DI */ + SPI_DIR &= (uint8_t) ~(1 << DDB0); /* DI */ SPI_DIR |= (1 << DDB1); /* DO */ SPI_DIR |= (1 << DDB2); /* SCLK */ }