Modifying board.c
Posted: Fri Aug 16, 2019 2:18 pm
I have a board where board.c needs to differ from the auto-generated template using board.chcfg.
The differences include using a #define to disable GPIO setup, for example. Also adding a couple of board-specific routines.
Is there a way to achieve this within the existing structure? (I realise I can just clone the board.c and board.h files into my project, but that makes things harder to maintain, since the same board is used on several projects).
The differences include using a #define to disable GPIO setup, for example. Also adding a couple of board-specific routines.
Is there a way to achieve this within the existing structure? (I realise I can just clone the board.c and board.h files into my project, but that makes things harder to maintain, since the same board is used on several projects).