From 3709be47e05b50a03d94821087d25de6046f78c4 Mon Sep 17 00:00:00 2001 From: Nicolas Reinecke Date: Sun, 1 May 2016 00:24:06 +0200 Subject: add qei testhal projects --- testhal/STM32/STM32F0xx/qei/mcuconf_community.h | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testhal/STM32/STM32F0xx/qei/mcuconf_community.h (limited to 'testhal/STM32/STM32F0xx/qei/mcuconf_community.h') diff --git a/testhal/STM32/STM32F0xx/qei/mcuconf_community.h b/testhal/STM32/STM32F0xx/qei/mcuconf_community.h new file mode 100644 index 0000000..b89bc7a --- /dev/null +++ b/testhal/STM32/STM32F0xx/qei/mcuconf_community.h @@ -0,0 +1,30 @@ +/* + ChibiOS/RT - Copyright (C) 2016 + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#ifndef MCUCONF_COMMUNITY_H +#define MCUCONF_COMMUNITY_H + +/* + * QEI driver system settings. + */ +#define STM32_QEI_USE_TIM1 FALSE +#define STM32_QEI_USE_TIM2 FALSE +#define STM32_QEI_USE_TIM3 TRUE +#define STM32_QEI_TIM1_IRQ_PRIORITY 3 +#define STM32_QEI_TIM2_IRQ_PRIORITY 3 +#define STM32_QEI_TIM3_IRQ_PRIORITY 3 + +#endif /* MCUCONF_COMMUNITY_H */ -- cgit v1.2.3