eCos GPIO读写及其中断处理#include "oem_portmisc.h" #include <cyg/hal/hal_intr.h> #include <cyg/hal/drv_api.h> #define GINT_FEDGE_0 0x10000660 #define GINT_STAT_0 0x10000690 typedef union gpio1mode_data { u32 d32; struct { u32 gpio_mode:2; u32 rsvd2_5:4; u32 i2s_mode:2; u32 rsvd8_