определяю разные пины для отправки для плат elbear и start
This commit is contained in:
parent
faf859fc96
commit
12c4042932
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user