【iCore4 雙核心板_ARM】例程二十六:LWIP_MODBUS_TCP實驗——電源監控

實驗現象:spa

 

核心代碼:code

int main(void)
{    
    system_clock.initialize();                                                                                  
    led.initialize();                                                      
    adc.initialize();                                                  
    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();                                                                       
    
    while(lwip.initialize())                                                 
    {
     LED_RED_ON;
         usart6.printf("\r\nETH initialize error!\r\n\r\n");                                
    }

    modbus.initialize();
    
    OSTaskCreate(start_task,(void*)0,(OS_STK*)&START_TASK_STK[START_STK_SIZE-1],START_TASK_PRIO);
    OSStart();                                                         
}

源代碼下載連接:htm

連接:https://pan.baidu.com/s/13XeY3m55cqEW2wqojIlHnA 密碼:xq1zblog

iCore4連接:ip

相關文章
相關標籤/搜索