程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> 關於C語言 >> LwIP移植和使用

LwIP移植和使用

編輯:關於C語言

 __CC_H__ 
 __CC_H__ <stdint.h>

 uint8_t            u8_t; 
 int8_t             s8_t; 
 uint16_t           u16_t; 
 int16_t            s16_t; 
 uint32_t           u32_t; 
 int32_t            s32_t; 
 uintptr_t          mem_ptr_t; 
 

 U16_F "hu"
 S16_F "hd"
 X16_F "hx"
 U32_F "lu"
 S32_F "ld"
 X32_F "lx"
 SZT_F "uz"
 

 BYTE_ORDER LITTLE_ENDIAN
 

 LWIP_PROVIDE_ERRNO


 (__arm__) && (__ARMCC_VERSION) 

     PACK_STRUCT_BEGIN __packed
     PACK_STRUCT_STRUCT
     PACK_STRUCT_END
     PACK_STRUCT_FIELD(fld) fld
 ALIGNED(n)  __align(n)

 __PERF_H__
 __PERF_H__

 PERF_START    /* null definition */
 PERF_STOP(x)  /* null definition */

 /* END __PERF_H__ */

 

* _sys_sem sys_sem_t; 
 SYS_SEM_NULL NULL 
 sys_sem_valid(sema) (((sema) != NULL) && ((sema)->sem != NULL)) 
 sys_sem_set_invalid(sema) ((sema)->sem = NULL) **semaphore_ptr =  (sem === port_malloc((semaphore_ptr == 
    raw_semaphore_create(semaphore_ptr, (RAW_U8 *)->sem = sys_sem_free(sys_sem_t *((sem == NULL) || (sem->sem ==->sem); 
->sem, (RAW_SEMAPHORE), ->->sem =

 


 IFNAME0 'e'
 IFNAME1 '0'


 eth_addr *
};

 

  low_level_init( netif * ethernetif *ethernetif = netif->->hwaddr_len =->mtu = 
    ->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | err_t low_level_output( netif *netif,  pbuf * ethernetif *ethernetif = netif-> pbuf * ETH_PAD_SIZE-ETH_PAD_SIZE);   

 
    (q = p; q != NULL; q = q->
    }

     ETH_PAD_SIZE
  pbuf * low_level_input( netif * ethernetif *ethernetif = netif-> pbuf *p, *

 ETH_PAD_SIZE+= ETH_PAD_SIZE; 


    = (p != ETH_PAD_SIZE-ETH_PAD_SIZE); 


        
        (q = p; q != NULL; q = q->
        }

         ETH_PAD_SIZE
    {
        
        LINK_STATS_INC(link.memerr);
        LINK_STATS_INC(link.drop);
    }

    

 err_t ethernetif_init( netif *
  tcpip_init_done( **( *)pdat =   ethernetif_input( netif *
  lwip_read_task( *( netif *pnetif = flag = &flag);  
    &e0ip, ,,,);      
    IP4_ADDR(&e0mask, ,,,);    
    IP4_ADDR(&e0gw, ,,,);        
    pnetif = netif_add(&lpc1788_netif, &e0ip, &e0mask, &
    netif_set_up(&lpc1788_netif);  
    raw_task_create(&lwip_read_obj, (RAW_U8  *), &- , 

 

附件:

http://pan.baidu.com/s/1gdfz1zd

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved