c1c069e95f
* move f3-1 to f4, remove f3 * remove f2 * remove firmware F3 for pipeline * remove patch for F4 makefile * fix fw makefile * migrate bootloader to f4
8 lines
218 B
C
8 lines
218 B
C
#include "cmsis_os.h"
|
|
#include "api-hal-tim.h"
|
|
|
|
void tim_irda_rx_init(void) {
|
|
HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
|
|
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_1);
|
|
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_2);
|
|
} |