diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2017-02-07 15:37:20 +0100 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2017-02-07 15:37:20 +0100 |
commit | 1d10f06ab48c8d7a52f50825097aade45710fb10 (patch) | |
tree | 8b7e0b642407d1ccec32c94e4017f3c8249d9ffa /testhal | |
parent | f4687bd298290f54574f213406c21b6d7c38511c (diff) | |
download | ChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.tar.gz ChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.tar.bz2 ChibiOS-Contrib-1d10f06ab48c8d7a52f50825097aade45710fb10.zip |
[Comp] Adding init, helper defines.
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/STM32/STM32F3xx/COMP/main.c | 4 |
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
};
|