zoukankan      html  css  js  c++  java
  • 【iCore4 双核心板_ARM】例程二十七:LWIP_NETIO实验——以太网测速

    实验现象:

    核心代码:

    int main(void)
    {    
        system_clock.initialize();                                                                                       
        led.initialize();                                                      
        adc.initialize();                                                     
        delay.initialize(216);                                               
        my_malloc.initialize(SRAMIN);                                        
        usart6.initialize(115200);                                                                                        
        usart6.printf("33[1;32;40m");                                                   
        usart6.printf("
    Hello, I am iCore4!
    
    ");                                            
    
        OSInit();                                                                       
        
        while(lwip.initialize())                                                 
        {
         LED_RED_ON;
             usart6.printf("
    ETH initialize error!
    
    ");                               
        }
      netio.initialize();
        tcp.initialize();
        
        OSTaskCreate(start_task,(void*)0,(OS_STK*)&START_TASK_STK[START_STK_SIZE-1],START_TASK_PRIO);
        OSStart();                                                          
    }

    源代码下载链接:

    链接: https://pan.baidu.com/s/1hrWN5dy 密码: tcfj

    iCore4链接:

  • 相关阅读:
    Redis
    Redis
    Redis
    Redis
    Redis
    Redis
    Distributed
    Sentinel
    Archi
    Redis
  • 原文地址:https://www.cnblogs.com/xiaomagee/p/7613645.html
Copyright © 2011-2022 走看看