[riot-notifications] [RIOT-OS/RIOT] [WIP] automatically set GNRC_NETIF_NUMOF (#12308)

Gunar Schorcht notifications at github.com
Fri Sep 27 11:00:38 CEST 2019


gschorcht commented on this pull request.



> +#define ETHOS_NUM (0)
+#endif
+
+#ifdef MODULE_NRF802154
+#define NRF802154_NUM (1)
+#else
+#define NRF802154_NUM (0)
+#endif
+
+#ifdef MODULE_STM32_ETH
+#define STM32_ETH_NUM (1)
+#else
+#define STM32_ETH_NUM (0)
+#endif
+
+#define GNRC_NETIF_NUMOF (AT86RF2XX_NUM + CC2420_NUM + KW2XRF_NUM + MRF24J40_NUM    \

The initialization of these netdevs is called as for other drivers in `sys/auto_init/auto_init.c`  https://github.com/RIOT-OS/RIOT/blob/37796355fd43dd1f04221d6487397422e7f3c226/sys/auto_init/auto_init.c#L244-L259

The difference is, that the implementations of the `auto_init_*` functions are not placed in separate files in `sys/auto_init/netif` but in `cpu/esp*/esp_*/esp_*_netdev.c`. The reason is that these netdevs are platform specific and shouldn't be placed in a common place.

-- 
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/12308#discussion_r328977128
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190927/22b17dfe/attachment.htm>


More information about the notifications mailing list