forked from ROMEO/obsw
working on lwip
This commit is contained in:
15
mission/netif/slipif.h
Normal file
15
mission/netif/slipif.h
Normal file
@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/netif.h"
|
||||
|
||||
struct slipif_priv {
|
||||
int fd;
|
||||
/* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */
|
||||
struct pbuf *p, *q;
|
||||
u8_t state;
|
||||
u16_t i, recved;
|
||||
};
|
||||
|
||||
err_t slipif_init(struct netif * netif);
|
||||
void slipif_poll(struct netif *netif);
|
Reference in New Issue
Block a user