技术栈

ecos

SEP5010
1 年前
ecos
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_
SEP5010
1 年前
ecos·cyg_flash_read
eCos flash模拟EEPROM实现NV系统Flash需要擦除的原因:先擦除后写入的原因是为了工业上制作方便,即物理实现方便。#include <cyg/infra/diag.h>