📄 idetest.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -