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/usrp_main.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/usrp_main.c')
-rw-r--r-- | firmware/fx2/usrp1/usrp_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/fx2/usrp1/usrp_main.c b/firmware/fx2/usrp1/usrp_main.c index 802516c0b..de213e164 100644 --- a/firmware/fx2/usrp1/usrp_main.c +++ b/firmware/fx2/usrp1/usrp_main.c @@ -63,7 +63,7 @@ unsigned char g_tx_underrun = 0; * into hash1. */ #define USRP_HASH_SIZE 16 -xdata at USRP_HASH_SLOT_1_ADDR unsigned char hash1[USRP_HASH_SIZE]; +__xdata __at (USRP_HASH_SLOT_1_ADDR) unsigned char hash1[USRP_HASH_SIZE]; static void get_ep0_data (void) @@ -305,7 +305,7 @@ main_loop (void) * Toggle led 0 */ void -isr_tick (void) interrupt +isr_tick (void) __interrupt { static unsigned char count = 1; @@ -324,8 +324,8 @@ isr_tick (void) interrupt void patch_usb_descriptors(void) { - static xdata unsigned char hw_rev; - static xdata unsigned char serial_no[8]; + static __xdata unsigned char hw_rev; + static __xdata unsigned char serial_no[8]; unsigned char i; eeprom_read(I2C_ADDR_BOOT, HW_REV_OFFSET, &hw_rev, 1); // LSB of device id |