返回信息流比如at91rm9200的芯片,它的寄存器定义头文件at91rm9200.h一般哪里有啊
寄存器那么多,挨个写岂不是崩溃
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #5464同步于 2009/7/26
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖
包含寄存器定义的头文件哪里有的下啊
JasonBourne
2009/7/26镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
那么多寄存器,不可能你挨个配置,配置重要的就行,
给你一个参考例子,这有1M的寄存器。很多都直接跳过不配置
ls推荐的是最可能,也是最好的办法
typedef struct immap {
sysconf83xx_t sysconf; /* System configuration */
wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
rtclk83xx_t rtc; /* Real Time Clock Module Registers */
rtclk83xx_t pit; /* Periodic Interval Timer */
gtm83xx_t gtm[2]; /* Global Timers Module */
ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
arbiter83xx_t arbiter; /* System Arbiter Registers */
reset83xx_t reset; /* Reset Module */
clk83xx_t clk; /* System Clock Module */
pmc83xx_t pmc; /* Power Management Control Module */
gpio83xx_t gpio[2]; /* General purpose I/O module */
u8 res0[0x200];
u8 dll_ddr[0x100];
u8 dll_lbc[0x100];
u8 res1[0xE00];
ddr83xx_t ddr; /* DDR Memory Controller Memory */
fsl_i2c_t i2c[2]; /* I2C Controllers */
u8 res2[0x1300];
duart83xx_t duart[2]; /* DUART */
u8 res3[0x900];
lbus83xx_t lbus; /* Local Bus Controller Registers */
u8 res4[0x1000];
spi83xx_t spi; /* Serial Peripheral Interface */
dma83xx_t dma; /* DMA */
pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */
ios83xx_t ios; /* Sequencer */
pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */
u8 res5[0x19900];
usb83xx_t usb[2];
tsec83xx_t tsec[2];
u8 res6[0xA000];
security83xx_t security;
u8 res7[0xC0000];
} immap_t;