From 1d10f06ab48c8d7a52f50825097aade45710fb10 Mon Sep 17 00:00:00 2001 From: Fabien Poussin Date: Tue, 7 Feb 2017 15:37:20 +0100 Subject: [Comp] Adding init, helper defines. --- testhal/STM32/STM32F3xx/COMP/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/STM32/STM32F3xx') diff --git a/testhal/STM32/STM32F3xx/COMP/main.c b/testhal/STM32/STM32F3xx/COMP/main.c index 83a00ff..06b35d3 100644 --- a/testhal/STM32/STM32F3xx/COMP/main.c +++ b/testhal/STM32/STM32F3xx/COMP/main.c @@ -34,13 +34,13 @@ void comp4_cb(COMPDriver *comp) { static const COMPConfig comp2_conf = { COMP_OUTPUT_NORMAL, comp2_cb, - COMP_CSR_COMPxINSEL_0 | COMP_CSR_COMPxOUTSEL_0 // CSR + STM32_COMP_InvertingInput_VREFINT // CSR }; static const COMPConfig comp4_conf = { COMP_OUTPUT_INVERTED, comp4_cb, - COMP_CSR_COMPxINSEL_0 | COMP_CSR_COMPxOUTSEL_1 // CSR + STM32_COMP_InvertingInput_1_2VREFINT | COMP_CSR_COMPxOUTSEL_1 // CSR }; -- cgit v1.2.3