From d9bcf00f69313b6dd42346d6af340a1a9874ba9f Mon Sep 17 00:00:00 2001 From: Marcus Müller Date: Mon, 16 Jan 2017 15:54:57 +0100 Subject: made FX2 EEPROMS and firmware build with modern SDCC 3.6 --- firmware/fx2/common/spi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/fx2/common/spi.h') diff --git a/firmware/fx2/common/spi.h b/firmware/fx2/common/spi.h index 12bc5e544..0ee688285 100644 --- a/firmware/fx2/common/spi.h +++ b/firmware/fx2/common/spi.h @@ -31,13 +31,13 @@ void init_spi (void); // one time call to init unsigned char spi_read (unsigned char header_hi, unsigned char header_lo, unsigned char enables, unsigned char format, - xdata unsigned char *buf, unsigned char len); + __xdata unsigned char *buf, unsigned char len); // returns non-zero if successful, else 0 unsigned char spi_write (unsigned char header_hi, unsigned char header_lo, unsigned char enables, unsigned char format, - const xdata unsigned char *buf, unsigned char len); + const __xdata unsigned char *buf, unsigned char len); #endif /* INCLUDED_SPI_H */ -- cgit v1.2.3