void init_platform() { platform_setup_timer(); platform_setup_interrupts(); return; }
int init_platform() { #if __MICROBLAZE__ || __PPC__ enable_caches(); #ifdef PLATFORM_STDOUT_IS_16550 /* if we have a uart 16550, then that needs to be initialized */ XUartNs550_SetBaud(PLATFORM_STDOUT_BASEADDR, XPAR_XUARTNS550_CLOCK_HZ, PLATFORM_BAUDRATE); XUartNs550_mSetLineControlReg(PLATFORM_STDOUT_BASEADDR, XUN_LCR_8_DATA_BITS); #endif platform_setup_interrupts(); /* initialize file system layer */ if (platform_init_fs() < 0) return -1; #endif #ifdef __arm__ if (Init_ScuTimer() != XST_SUCCESS) while(1); SetupIntrSystem(&TimerInstance, TIMER_IRPT_INTR); /* initialize file system layer */ if (platform_init_fs() < 0) return -1; #endif return 0; }
void init_platform() { enable_caches(); #ifdef STDOUT_IS_16550 XUartNs550_SetBaud(STDOUT_BASEADDR, XPAR_XUARTNS550_CLOCK_HZ, 9600); XUartNs550_SetLineControlReg(STDOUT_BASEADDR, XUN_LCR_8_DATA_BITS); #endif platform_setup_interrupts(); }
int init_platform() { enable_caches(); #ifdef PLATFORM_STDOUT_IS_16550 /* if we have a uart 16550, then that needs to be initialized */ XUartNs550_SetBaud(PLATFORM_STDOUT_BASEADDR, XPAR_XUARTNS550_CLOCK_HZ, PLATFORM_BAUDRATE); XUartNs550_mSetLineControlReg(PLATFORM_STDOUT_BASEADDR, XUN_LCR_8_DATA_BITS); #endif platform_setup_interrupts(); /* initialize file system layer */ if (platform_init_fs() < 0) return -1; return 0; }