實驗現象:
核心程式碼:
int main(void) { system_clock.initialize(); //ϵͳʱÖÓ³õʼ»¯ led.initialize(); //LED³õʼ»¯ adc.initialize(); //ADC³õʼ»¯ delay.initialize(216); //ÑÓʱ³õʼ»¯ my_malloc.initialize(SRAMIN); //¶¯Ì¬ÄÚ´æ³õʼ»¯ usart6.initialize(115200); //´®¿Ú²¨ÌØÉèÖà usart6.printf("\033[1;32;40m"); //ÉèÖÃ×ÖÌåÖÕ¶ËΪÂÌÉ« usart6.printf("\r\nHello, I am iCore4!\r\n\r\n"); //´®¿ÚÐÅÏ¢Êä³ö OSInit(); //UCOS³õʼ»¯ while(lwip.initialize()) //lwip³õʼ»¯ { LED_RED_ON; usart6.printf("\r\nETH initialize error!\r\n\r\n"); //ETH³õʼ»¯Ê§°Ü } tcp_client.initialize(); OSTaskCreate(start_task,(void*)0,(OS_STK*)&START_TASK_STK[START_STK_SIZE-1],START_TASK_PRIO); OSStart(); //¿ªÆôUCOS }
原始碼下載連結:
連結: https://pan.baidu.com/s/1qYRxI48 密碼: zf9u
iCore4連結: