2016年03月16日
⁄ FPGA开发
⁄ 共 1891字
⁄ 阅读 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...
读写EPCS阅读全文