aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/usrp2p/bootloader_utils.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-18 00:09:55 -0800
committerJosh Blum <josh@joshknows.com>2010-12-18 00:09:55 -0800
commit4c3ba019003fea27577bcd91b2ff5f8cf0f4ac9b (patch)
tree2873a9856ae3a9cdac58d1e2535e496dc6130a62 /firmware/microblaze/usrp2p/bootloader_utils.c
parent4c98ef443b24955b2d266f5783cf5d26c04d3715 (diff)
downloaduhd-4c3ba019003fea27577bcd91b2ff5f8cf0f4ac9b.tar.gz
uhd-4c3ba019003fea27577bcd91b2ff5f8cf0f4ac9b.tar.bz2
uhd-4c3ba019003fea27577bcd91b2ff5f8cf0f4ac9b.zip
usrp-n210: removed fw warnings, bootloader does full size 16k load
Diffstat (limited to 'firmware/microblaze/usrp2p/bootloader_utils.c')
-rw-r--r--firmware/microblaze/usrp2p/bootloader_utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/microblaze/usrp2p/bootloader_utils.c b/firmware/microblaze/usrp2p/bootloader_utils.c
index fa56c199a..379c5f957 100644
--- a/firmware/microblaze/usrp2p/bootloader_utils.c
+++ b/firmware/microblaze/usrp2p/bootloader_utils.c
@@ -18,8 +18,7 @@ int is_valid_fpga_image(uint32_t addr) {
uint8_t imgbuf[64];
spi_flash_read(addr, 64, imgbuf);
//we're just looking for leading 0xFF padding, followed by the sync bytes 0xAA 0x99
- int i = 0;
- for(i; i<63; i++) {
+ for(size_t i = 0; i<63; i++) {
if(imgbuf[i] == 0xFF) continue;
if(imgbuf[i] == 0xAA && imgbuf[i+1] == 0x99) {
//printf("is_valid_fpga_image(): found valid FPGA image\n");