Beside having a `CONFIG_BOARD_REVISION` Kconfig string that represents our semantic versioning for board revisions, the ZigBee sample requires an integer representation of it. Instead of conditioning the integer version on the string version only for that sample and having to touch the ZigBee sample whenever we add a revision, I decided to have a board-wide config, so that both string and int versions live close to each other. Fixes #138.
18 lines
No EOL
317 B
Text
18 lines
No EOL
317 B
Text
|
|
if BOARD_BPARASITE_NRF52833
|
|
|
|
config BOARD
|
|
default "bparasite_nrf52833"
|
|
|
|
config BOARD_REVISION
|
|
string "Board revision."
|
|
default "1.0.0"
|
|
|
|
config BOARD_REVISION_CODE
|
|
int "Board revision code. An integer representation of the board revision."
|
|
default 1
|
|
|
|
config BT_CTLR
|
|
default BT
|
|
|
|
endif # BOARD_BPARASITE_NRF52833 |