197 |
* Call the arch specific sio_open and remember |
* Call the arch specific sio_open and remember |
198 |
* the opened device in the state field of the netif. |
* the opened device in the state field of the netif. |
199 |
*/ |
*/ |
200 |
void |
err_t |
201 |
slipif_init(struct netif *netif) |
slipif_init(struct netif *netif) |
202 |
{ |
{ |
203 |
|
|
209 |
netif->mtu = 1500; |
netif->mtu = 1500; |
210 |
|
|
211 |
netif->state = sio_open(netif->num); |
netif->state = sio_open(netif->num); |
212 |
|
if (!netif->state) |
213 |
|
return ERR_IF; |
214 |
|
|
215 |
sys_thread_new(slipif_loop, netif); |
sys_thread_new(slipif_loop, netif); |
216 |
|
return ERR_OK; |
217 |
} |
} |