unit.c: updated API for ll driver
All checks were successful
/ unit_test (push) Successful in 37s

This commit is contained in:
Daniele Lacamera 2024-11-24 21:40:18 +01:00
parent 96bfb2d105
commit 9997f3e295

View file

@ -18,7 +18,7 @@ static const uint8_t ifmac[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55};
static uint8_t last_frame_sent[LINK_MTU]; static uint8_t last_frame_sent[LINK_MTU];
static uint32_t last_frame_sent_size = 0; static uint32_t last_frame_sent_size = 0;
static int mock_send(struct ll *dev, void *frame, int len) static int mock_send(struct ll *dev, void *frame, uint32_t len)
{ {
(void)dev; (void)dev;
memcpy(last_frame_sent, frame, len); memcpy(last_frame_sent, frame, len);
@ -26,7 +26,7 @@ static int mock_send(struct ll *dev, void *frame, int len)
return 0; return 0;
} }
static int mock_poll(struct ll *dev, void *frame, int len) static int mock_poll(struct ll *dev, void *frame, uint32_t len)
{ {
(void)dev; (void)dev;
(void)frame; (void)frame;