если плата не прописана, выдать ошибку

This commit is contained in:
KLASSENTS 2025-01-29 09:20:37 +07:00
parent 25e595e1ec
commit f05c1f22af

View File

@ -2078,9 +2078,12 @@ extern "C" void __attribute__((noinline, section(".ram_text"), optimize("O3")))
# if (defined(ARDUINO_START_MIK32_V1) || defined(ARDUINO_ELSOMIK))
#define IR_SEND_PIN P0_0
# else
# elif (defined(ARDUINO_ACE_UNO_8MB) || defined(ARDUINO_ACE_UNO_16MB) || \
defined(ARDUINO_ACE_UNO_32MB) || defined(ARDUINO_ELBEAR_NANO))
#define IR_SEND_PIN 3
# endif // START_MIK32_V1, ELSOMIK
# else
#error "Unknown MIK32V2 board!"
# endif
static TIMER32_HandleTypeDef ir_sender_htimer;
static TIMER32_CHANNEL_HandleTypeDef ir_sender_htimer_channel;