- int main(void)
- {
- *((volatile unsigned int *)REG_AIC_INTDIS0)=0xFFFFFFFF; // disable all interrupt channel
- *((volatile unsigned int *)REG_AIC_INTDIS1)=0xFFFFFFFF; // disable all interrupt channel
- *(volatile unsigned int *)(CLK_BA+0x18) |= (1<<16); /* Enable UART0 */
- sysDisableCache();
- sysFlushCache(I_D_CACHE);
- sysEnableCache(CACHE_WRITE_BACK);
- UART_Init();
- while(1);
- }
复制代码
|