определяю разные пины для отправки для плат elbear и start

This commit is contained in:
KLASSENTS 2025-01-25 10:01:31 +07:00
parent f3efccf099
commit b6be21a8b6

View File

@ -2072,9 +2072,15 @@ extern "C" void __attribute__((noinline, section(".ram_text"), optimize("O3")))
TIM16_CLEAR_INT_MASK(htimer16_0, 0xFFFFFFFF); // reset timer interrupt flags TIM16_CLEAR_INT_MASK(htimer16_0, 0xFFFFFFFF); // reset timer interrupt flags
} }
// -------------------------- sending -------------------------- //
# if defined(SEND_PWM_BY_TIMER) # if defined(SEND_PWM_BY_TIMER)
#include "pins_arduino.h" #include "pins_arduino.h"
#define IR_SEND_PIN 3
# if defined(ARDUINO_START_MIK32_V1)
#define IR_SEND_PIN P0_0
# else
#define IR_SEND_PIN 3
# endif // START_MIK32_V1
static TIMER32_HandleTypeDef ir_sender_htimer; static TIMER32_HandleTypeDef ir_sender_htimer;
static TIMER32_CHANNEL_HandleTypeDef ir_sender_htimer_channel; static TIMER32_CHANNEL_HandleTypeDef ir_sender_htimer_channel;