diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2017-01-16 15:54:57 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-06-29 15:53:15 -0700 |
commit | d9bcf00f69313b6dd42346d6af340a1a9874ba9f (patch) | |
tree | 62185d7ea2c20952d60cf8f6a558866ecf1d54bf /firmware/fx2/usrp1/fpga_load.c | |
parent | c77bd0c46a598d5e69b179d76a3df6091e982129 (diff) | |
download | uhd-d9bcf00f69313b6dd42346d6af340a1a9874ba9f.tar.gz uhd-d9bcf00f69313b6dd42346d6af340a1a9874ba9f.tar.bz2 uhd-d9bcf00f69313b6dd42346d6af340a1a9874ba9f.zip |
made FX2 EEPROMS and firmware build with modern SDCC 3.6
Diffstat (limited to 'firmware/fx2/usrp1/fpga_load.c')
-rw-r--r-- | firmware/fx2/usrp1/fpga_load.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/fx2/usrp1/fpga_load.c b/firmware/fx2/usrp1/fpga_load.c index c3ae9e707..4c0a85ee2 100644 --- a/firmware/fx2/usrp1/fpga_load.c +++ b/firmware/fx2/usrp1/fpga_load.c @@ -89,9 +89,9 @@ clock_out_config_byte (unsigned char bits) #else static void -clock_out_config_byte (unsigned char bits) _naked +clock_out_config_byte (unsigned char bits) __naked { - _asm + __asm mov a, dpl rrc a @@ -136,14 +136,14 @@ clock_out_config_byte (unsigned char bits) _naked ret - _endasm; + __endasm; } #endif static void clock_out_bytes (unsigned char bytecount, - unsigned char xdata *p) + unsigned char __xdata *p) { while (bytecount-- > 0) clock_out_config_byte (*p++); @@ -163,7 +163,7 @@ clock_out_bytes (unsigned char bytecount, * ALTERA_NSTATUS = 1 (input) */ unsigned char -fpga_load_xfer (xdata unsigned char *p, unsigned char bytecount) +fpga_load_xfer (__xdata unsigned char *p, unsigned char bytecount) { clock_out_bytes (bytecount, p); return 1; |