/* *********************************************************************** *name: Samuel Igwe *date: 07/04/2015 *description: main ... what else * phase 1: system initialization * led + timer * phase 2: the above with * uart communication 115200 * simple monitor program * phase 3: the above with * fpga setup in order to control LED's * enabling static and dram memory controller * phase 4: the above with * usb host support in place for gamepads * /mouse/keyboards * phase 5: the above with * extended fpga support for usb controller * glue logic. *********************************************************************** */ #include "IE_egwu_setup.h" #include "IE_egwu_uartio.h" #include "IE_egwu_monitor.h"
/* *********************************************************************** *name: Samuel Igwe *date: 07/04/2015 *description: main ... what else * phase 1: system initialization * led + timer * phase 2: the above with * uart communication 115200 * simple monitor program * phase 3: the above with * fpga setup in order to control LED's * enabling static and dram memory controller * phase 4: the above with * usb host support in place for gamepads * /mouse/keyboards * phase 5: the above with * extended fpga support for usb controller * glue logic. *********************************************************************** */ #include "main.h" int main(void) { volatile unsigned int wdTemp, *ptrTemp; //const int wdGpio=18, wdTestVal='0'; //asm ("ldr sp, =0x10008000"); /*stack setup ... to help determine stack issues*/ //ptrTemp = (volatile unsigned int *)(0x10000000 + 32768 - 4); //for(wdTemp = 0; wdTemp <1024; wdTemp++) //*(ptrTemp--) = 0xc0defeed; setup_pll(); setup_nvic(); setup_gpio(); setup_gpdma(); setup_uart(); setup_uartio(); gpio_set_lpc_biled(0); wdTemp ='0'; while(1) { //uartio_printf("%s\n", ptrBanner); monitor_execution(&strCmdline); #ifdef IGNORE wdTemp = strSysTick.wdSeconds; uartio_printf("%d\r", wdTemp); // (LPC_GPIO1->SET) = (1 << wdGpio); uartio_putc(wdTemp); wdTemp++; //uartio_putc('\r'); if(wdTemp == '9') { uartio_putc(13); uartio_putc(10); wdTemp = '0'; } timer_delay_mS(1000); // (LPC_GPIO1->CLR) = (1 << wdGpio); #endif } }
No comments:
Post a Comment