现在位置: 首页 > 读写EPCS
2016年03月16日 FPGA开发 ⁄ 共 1891字 如何在NIOS II中读写EPCS剩余空间(转)已关闭评论 ⁄ 阅读 1,760 次
由于测试需要,网上收到的,直接贴代码,以备不时之需: #include <stdio.h> #include <unistd.h> #include "system.h" #include "alt_types.h" #include "sys/alt_flash.h" #include "sys/alt_flash_dev.h" alt_u8 epcsbuf[32]; int ret_code; alt_flash_fd* my_epcs;//定义句柄 main() { my_epcs = alt_flash_open_dev("/dev...
阅读全文
×