idetest.c
来自「有关于USB的一些主机端驱动」· C语言 代码 · 共 39 行
C
39 行
#include "..\header\armperipherals.h"
#include "..\header\FPGA_peripherals.h"
#include <stdio.h>
#include "omap30.h"
#include "omap30_arminth.h"
#include "omap1510_inth2.h"
#include "swi.h"
extern unsigned short *fpga_intmask;
int idetest(void) {
int retval = 0;
// Enable touch screen interrupt in FPGA interrupt handler
// *fpga_intmask = 0x0008;
printf("\nIDE test ...\n");
if((retval = CF_test(0)) < 0)
printf("IDE test failed \n");
printf("\nCF Disk test ...\n");
if((retval = CF_test(1)) < 0)
printf("CF Disk test failed \n");
//printf("GPIO = 14 Interrupt handler masked \n ");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?