A program that compiles well under Optiboot 8.0 (by westfw) board definitions for the 32 pin processor (using Preferences/Additional Board Manager url https://github.com/Optiboot/optiboot/releases/download/v8.0/package_optiboot_optiboot-additional_index.json) gives a compile error when MCUdude's Minicore for the 328P is used.
The Optiboot 8.0 board definitions are installed using the Board Manager
The program contains the following qualifiers for compilation for different processors:
#if defined (ESP32) || (ESP8266)
#define ESP
#endif
#if defined (ARDUINO_AVR_LEONARDO)
#define AVR_UNO
#elif defined (ARDUINO_AVR_UNO)
#define AVR_UNO
#elif defined (ARDUINO_AVR_PRO)
#define AVR_UNO
#elif defined (ARDUINO_AVR_NANO)
#define AVR_UNO
#endif
I can find the board definitions under c:/users/username/AppData/Local/Arduino15/packages/Arduino/hardware/avr/1.8.5/boards.txt for Arduino; similar for the Optiboot 8.0 defintions, as well as for the Minicore definitions.
But I do not know how to write a qualifier for the Pro Mini when compiling for Minicore 328P board.
Any help is much appreciated.