aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/usrp2p/spi_flash.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-10 12:23:08 -0800
committerJosh Blum <josh@joshknows.com>2011-01-10 12:23:08 -0800
commit2106c6cf594866061f56b09d1396bb80df51802e (patch)
tree65c94c63d5737d88653d87e7285627650318b55a /firmware/zpu/usrp2p/spi_flash.h
parent916223ef3544452bee57b08f9593aa9da66212a5 (diff)
downloaduhd-2106c6cf594866061f56b09d1396bb80df51802e.tar.gz
uhd-2106c6cf594866061f56b09d1396bb80df51802e.tar.bz2
uhd-2106c6cf594866061f56b09d1396bb80df51802e.zip
usrp2: firmware pad bins to zero to deal with optimizing out the static vars that init to zero
removed the spi flash init in favor of an initialization constant at zero tweaked the cmakelists flags list added pad option to the gen binaries macro
Diffstat (limited to 'firmware/zpu/usrp2p/spi_flash.h')
-rw-r--r--firmware/zpu/usrp2p/spi_flash.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/zpu/usrp2p/spi_flash.h b/firmware/zpu/usrp2p/spi_flash.h
index bfecab468..9a04df86b 100644
--- a/firmware/zpu/usrp2p/spi_flash.h
+++ b/firmware/zpu/usrp2p/spi_flash.h
@@ -31,13 +31,9 @@
uint32_t spi_flash_rdid(void); /* Read ID */
uint32_t spi_flash_rdsr(void); /* Read Status Register */
-//! call before using any spi flash utilities
-void spi_flash_init(void);
-
+size_t spi_flash_log2_memory_size(void);
size_t spi_flash_log2_sector_size(void);
-
size_t spi_flash_sector_size(void);
-
size_t spi_flash_memory_size(void);
void spi_flash_read(uint32_t flash_addr, size_t nbytes, void *buf);