[riot-notifications] [RIOT-OS/RIOT] boards/samr21-xpro: namespace board_init (#16481)
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...
More information about the notifications