[riot-notifications] [RIOT-OS/RIOT] boards/samr21-xpro: namespace board_init (#16481)

Marian Buschsieweke notifications at github.com
Wed May 19 12:45:47 CEST 2021

Let's say you have board configurations A and B, that require a different initialization code. In A, you want to do something *in addition* to the SAMR21-XPRO init code, in B you want it to do something *instead* the regular initialization.

With this approach, you can do both extending the init code (by calling `board_samr21_xpro_init()` from the strong `board_init()` function), or replace it (but not calling `board_samr21_xpro_init()` from there). An additional hook would only cater the use case of board A.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210519/19393e70/attachment.htm>

More information about the notifications mailing list