diff options
Diffstat (limited to 'app/ltimers/ltimers_config.h')
-rw-r--r-- | app/ltimers/ltimers_config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/ltimers/ltimers_config.h b/app/ltimers/ltimers_config.h new file mode 100644 index 0000000..50a75db --- /dev/null +++ b/app/ltimers/ltimers_config.h @@ -0,0 +1,15 @@ +#ifndef LTIMERS_CONFIG_INCLUDED +#define LTIMERS_CONFIG_INCLUDED + +// Примечание +// Обратить внимание на то, что таймеры тактируются от разных шин APB1 или APB2 + +#define LTIMER_IRQHandler TIM17_IRQHandler +#define LTIMER_TIMx TIM17 +#define LTIMER_TIM_RCC RCC_APB2Periph_TIM17 +#define LTIMER_TIM_IRQx TIM17_IRQn +#define LTIMER_RCC_APBxPeriphClockCmd RCC_APB2PeriphClockCmd + +void LTimersConfig ( void ); + +#endif // LTIMERS_CONFIG_INCLUDED |