aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2017-02-07 15:37:20 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2017-02-07 15:37:20 +0100
commit1d10f06ab48c8d7a52f50825097aade45710fb10 (patch)
tree8b7e0b642407d1ccec32c94e4017f3c8249d9ffa /testhal/STM32/STM32F3xx
parentf4687bd298290f54574f213406c21b6d7c38511c (diff)
downloadChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.tar.gz
ChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.tar.bz2
ChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.zip
[Comp] Adding init, helper defines.
Diffstat (limited to 'testhal/STM32/STM32F3xx')
-rw-r--r--testhal/STM32/STM32F3xx/COMP/main.c4
1 files changed, 2 insertions, 2 deletions
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
};