void C_EntryTask3(void) { volatile int delay; /* ----------------------------------------------------------- * * Open file stream * * * ----------------------------------------------------------- */ if(openHost (COM0)==TRUE) { banner (); shell (); } /* ----------------------------------------------------------- * * Closing the HostPort should *never* occur * * ----------------------------------------------------------- */ closeHost (); while (1) { delay=0xbeef003; } }
void entry(void) { /* ----------------------------------------------------------- * * Open file stream * * * ----------------------------------------------------------- */ if(openHost (COM0)==TRUE) { banner (); shell (); } /* ----------------------------------------------------------- * * The closing the HostPort should *never* occur * * ----------------------------------------------------------- */ closeHost (); }
void C_EntryTask1(void) { unsigned int delay = 100; unsigned int * ptr = &delay; unsigned int cpsr_addr1 = 0x800A0000; unsigned int cpsr_addr2 = 0x800B0000; unsigned int cpsr_addr3 = 0x402fff00; while(1); /* Open file stream */ if(openHost(COM0) == TRUE) { prettyPrint("the value of delay is %x\n",delay); prettyPrint("the value of ptr is %x\n",ptr); // for (delay = 0; delay < 0x010ffff; delay++); banner(); prettyPrint("the value of delay is %x\n",delay); prettyPrint("value at %x is %x\n", (unsigned int*)cpsr_addr1, *(unsigned int*)cpsr_addr1); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr1) + 1), *((unsigned int*)(cpsr_addr1) + 1)); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr1) + 2), *((unsigned int*)(cpsr_addr1) + 2)); prettyPrint("value at %x is %x\n", (unsigned int*)cpsr_addr2, *(unsigned int*)cpsr_addr2); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr2) + 1), *((unsigned int*)(cpsr_addr2) + 1)); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr2) + 2), *((unsigned int*)(cpsr_addr2) + 2)); prettyPrint("value at %x is %x\n", (unsigned int*)cpsr_addr3, *(unsigned int*)cpsr_addr3); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr3) + 1), *((unsigned int*)(cpsr_addr3) + 1)); prettyPrint("at %x is %x\n", ((unsigned int*)(cpsr_addr3) + 2), *((unsigned int*)(cpsr_addr3) + 2)); shell(); } /* Closing the HostPort should *never* occur */ closeHost(); while(1) delay=0xbeef003; }