RedBoard Turbo - No board name defined when using Visual Studio

I am developing similar code to run on Adafruit M0 Express, Adafruit Itsy Bitsy M0 and Sparkfun Red Board Turbo. I am using Visual Studio as the development environment. As the boards have different pin maps I need to have different code for the different boards ideally by having generic code and board specific definitions.

In Visual Studio when I select the Adafruit boards a board name is added to the project symbols. However selecting the Sparkfun board gives no similar definition.

I can’t locate where the board name is coming from so can’t automatically identify the board using this type of pre-processing

#ifdef SPARKFUN_REDTURBO // not automatically added to Visual Sudio

// pin definitions for Sparkfun Board

#elif defined ADAFRUIT_EXPRESS_M0 //automatically added to Visual Studio

//my pin definitions for Adafruit board

#endif

Any suggestions?

Ted

Hi Ted.

Unfortunately we haven’t worked on supporting the RedBoard Turbo in Visual Studio and I don’t know if that’s something we would be working on in the future. I will mention it to our engineering team though to see if anyone would be interested in adding support.

In the meantime, there may be another SAMD21 based board that’s similar enough to the RedBoard Turbo to work in VS. You’d just need to try the available ones out and see if one works for you.