[riot-notifications] [RIOT-OS/RIOT] drivers/cc110x: add hook cc110x_eui_get() (#16286)

fabian18 notifications at github.com
Thu Apr 8 07:55:18 CEST 2021


@fabian18 commented on this pull request.



>      while (dev->addr == CC110X_L2ADDR_AUTO) {
-        luid_get(&dev->addr, 1);
+        _cc110x_eui_get(netdev, &dev->addr);
     }

So this would be ok?
```C
void __attribute__((weak)) cc1xxx_eui_get(const netdev *netdev, void *eui)
{
    do {
        luid_get(eui, 1);
    }
    while (*((uint8_t *)eui) == CC1XXX_BCAST_ADDR);
}
``` 
And it should be defined in `gnrc_netif_cc1xxx.c`?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16286#discussion_r609326796
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210407/68d1f9ab/attachment.htm>


More information about the notifications mailing list