X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fattiny%2Fao_i2c_attiny.c;h=34185b5a28c2cba72a6e17776eb535ece8db523d;hp=2ee44fd2eea07d180224d077172b220ff8096784;hb=0448b9b638f8599633227a639ef9d8572780bbd9;hpb=5a55501660ebab3b858a48483c5df1cfb4e858e4 diff --git a/src/attiny/ao_i2c_attiny.c b/src/attiny/ao_i2c_attiny.c index 2ee44fd2..34185b5a 100644 --- a/src/attiny/ao_i2c_attiny.c +++ b/src/attiny/ao_i2c_attiny.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -172,7 +173,7 @@ ao_i2c_stop_bus(void) * so using interrupts would take way too long */ uint8_t -ao_i2c_send_bus(void __xdata *block, uint16_t len, uint8_t stop) +ao_i2c_send_bus(void *block, uint16_t len, uint8_t stop) { uint8_t *d = block; @@ -205,7 +206,7 @@ ao_i2c_send_fixed_bus(uint8_t d, uint16_t len, uint8_t stop) * Poll, sending zeros and reading data back */ uint8_t -ao_i2c_recv_bus(void __xdata *block, uint16_t len, uint8_t stop) +ao_i2c_recv_bus(void *block, uint16_t len, uint8_t stop) { uint8_t *d = block;