I need to modify an existing library that relies on being able to detrmine what board / processor the code is being run on. To do this, it uses definitions such as this for an Arduino Mega:
// Arduino Mega
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
I need to update the library for a further 2 boards, namely the Raspberry pi pico (mbed os) and the Robotis OpenCR.
I can't seem t find where the processor name is actually defined. If someone could point me in the right direction, that would be great. Thanks.
Edit: If anyone knows what the equivelent define is for the raspbery pi pico - rp2040, that would be fantastic!
#ifdef ARDUINO_AVR_UNO