实验现象:
核心代码:
int main(void)
{
system_clock.initialize();
led.initialize();
adc.initialize();
delay.initialize();
my_malloc.initialize(SRAMIN);
usart6.initialize();
usart6.printf("\033[1;32;40m");
usart6.printf("\r\nHello, I am iCore4!\r\n\r\n"); OSInit(); while(lwip.initialize())
{
LED_RED_ON;
usart6.printf("\r\nETH initialize error!\r\n\r\n");
}
tcp.initialize(); OSTaskCreate(start_task,(void*),(OS_STK*)&START_TASK_STK[START_STK_SIZE-],START_TASK_PRIO);
OSStart();
}
源代码下载链接:
链接:https://pan.baidu.com/s/1iCaaL_pcsvSItyM5rUrw3g
提取码:84so
iCore4链接: