Ugo:
Just as a preface, BSPs are intended to be examples of how one could create a
BSP for their own system. It was assumed/expected that folks would take these
BSPs and modify them for their own use. Well, at least I thought so anyway.
Another decision we made in the BSP and one that we have
Thank you so much Chris and Will for your notes.
Let me specify my case.
There are actually 2 different scenarios that I need to address.
BACKGROUND: I have developed (or should I say Will has and I have
subsequently hacked it) an app that runs on 2 NRF52-based BSPs, namely
NRF52DK and RBN2 and
On Wed, Jun 14, 2017 at 04:22:52PM +0200, Ugo Mastracchio wrote:
> Hello everyone, may I throw an absolute beginner's question ?
>
> How do I conditionally compile based on the BSP the target is
> associated with ?I want to use different GPIO pins depending on the board
>
> Is there a
Ugo:
I believe that there is -DBSP_NAME passed to everything. Here is an excerpt
debug output from a build. You can see BSP_NAME=nrf52dk
2017/06/14 09:07:57.635 [DEBUG] arm-none-eabi-gcc -DADC_ENABLED=0
-DAPP_NAME=bletest -DAPP_bletest -DARCH_NAME=cortex_m4 -DARCH_cortex_m4
-DBLETEST