From 12c404293239d7d24d98270e7756a9d0876e5dc9 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Sat, 25 Jan 2025 10:01:31 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=D1=8E=20=D1=80=D0=B0=D0=B7=D0=BD=D1=8B=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B8=D0=BD=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BB=D0=B0=D1=82=20elbear=20=D0=B8=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/IRremote/src/private/IRTimer.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libraries/IRremote/src/private/IRTimer.hpp b/libraries/IRremote/src/private/IRTimer.hpp index 2d3c403..c34dd52 100644 --- a/libraries/IRremote/src/private/IRTimer.hpp +++ b/libraries/IRremote/src/private/IRTimer.hpp @@ -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 } +// -------------------------- sending -------------------------- // # if defined(SEND_PWM_BY_TIMER) -#include "pins_arduino.h" -#define IR_SEND_PIN 3 +#include "pins_arduino.h" + +# 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_CHANNEL_HandleTypeDef ir_sender_htimer_channel;