aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F1xx/qei/mcuconf_community.h
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2016-05-16 20:56:46 +0300
committerUladzimir Pylinski <barthess@yandex.ru>2016-05-16 20:56:46 +0300
commitaefe1f951b166e3e6043c6126ddcb42299eae4e7 (patch)
tree092efc70e3fcea537317a8f8e1a48d5cf836d1a2 /testhal/STM32/STM32F1xx/qei/mcuconf_community.h
parentb0dd73442bc0e0cd62a963b431aa9a72c6e86953 (diff)
parent4a36fb944b854eb91e74ce18a7b2cb0cedf7d0d1 (diff)
downloadChibiOS-Contrib-aefe1f951b166e3e6043c6126ddcb42299eae4e7.tar.gz
ChibiOS-Contrib-aefe1f951b166e3e6043c6126ddcb42299eae4e7.tar.bz2
ChibiOS-Contrib-aefe1f951b166e3e6043c6126ddcb42299eae4e7.zip
Merge pull request #72 from pl4nkton/add_qei_driver
Add qei driver
Diffstat (limited to 'testhal/STM32/STM32F1xx/qei/mcuconf_community.h')
-rw-r--r--testhal/STM32/STM32F1xx/qei/mcuconf_community.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F1xx/qei/mcuconf_community.h b/testhal/STM32/STM32F1xx/qei/mcuconf_community.h
new file mode 100644
index 0000000..2c1a688
--- /dev/null
+++ b/testhal/STM32/STM32F1xx/qei/mcuconf_community.h
@@ -0,0 +1,41 @@
+/*
+ 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
+
+/*
+ * FSMC SRAM driver system settings.
+ */
+#define STM32_USE_FSMC_SRAM FALSE
+
+/*
+ * 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_USE_TIM4 FALSE
+#define STM32_QEI_USE_TIM5 FALSE
+#define STM32_QEI_USE_TIM8 FALSE
+#define STM32_QEI_TIM1_IRQ_PRIORITY 7
+#define STM32_QEI_TIM2_IRQ_PRIORITY 7
+#define STM32_QEI_TIM3_IRQ_PRIORITY 7
+#define STM32_QEI_TIM4_IRQ_PRIORITY 7
+#define STM32_QEI_TIM5_IRQ_PRIORITY 7
+#define STM32_QEI_TIM8_IRQ_PRIORITY 7
+
+#endif /* MCUCONF_COMMUNITY_H */