From ea807de65b0485ac58b6eae576209c64d4d5c4e9 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 5 Mar 2023 20:20:45 +0300 Subject: Split app code and third party libraries --- app/ltimers/ltimers_config.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/ltimers/ltimers_config.h (limited to 'app/ltimers/ltimers_config.h') 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 -- cgit v1.2.3