mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-12 07:29:04 +08:00
Add enc28j60 driver skeleton
This commit is contained in:
parent
aefc588e6e
commit
823c0ef5fb
27
mip/driver_enc28j60.c
Normal file
27
mip/driver_enc28j60.c
Normal file
@ -0,0 +1,27 @@
|
||||
#include "mip.h"
|
||||
|
||||
#if MG_ENABLE_MIP
|
||||
static void mip_driver_enc28j60_init(uint8_t *mac, void *data) {
|
||||
(void) mac, (void) data;
|
||||
}
|
||||
|
||||
static size_t mip_driver_enc28j60_tx(const void *buf, size_t len, void *data) {
|
||||
(void) buf, (void) len, (void) data;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static size_t mip_driver_enc28j60_rx(void *buf, size_t len, void *data) {
|
||||
(void) buf, (void) len, (void) data;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool mip_driver_enc28j60_up(void *data) {
|
||||
(void) data;
|
||||
return false;
|
||||
}
|
||||
|
||||
struct mip_driver mip_driver_enc28j60 = {.init = mip_driver_enc28j60_init,
|
||||
.tx = mip_driver_enc28j60_tx,
|
||||
.rx = mip_driver_enc28j60_rx,
|
||||
.up = mip_driver_enc28j60_up};
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user