aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-09-17 14:57:16 +0200
committerFabien Poussin <fabien.poussin@gmail.com>2019-09-17 14:57:16 +0200
commita8bd0ca9da23f75897fe466db179c3da34a8a946 (patch)
treeac44ff73987ee51c4e3efad6328cf5164578f9ba /os/hal/ports/STM32/LLD
parent9483bacf8847278d5a32b0dafeb32c416b676df4 (diff)
downloadChibiOS-Contrib-a8bd0ca9da23f75897fe466db179c3da34a8a946.tar.gz
ChibiOS-Contrib-a8bd0ca9da23f75897fe466db179c3da34a8a946.tar.bz2
ChibiOS-Contrib-a8bd0ca9da23f75897fe466db179c3da34a8a946.zip
Fixed COMP1 peripheral name
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r--os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c
index 62d9f14..49bc6a7 100644
--- a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c
+++ b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c
@@ -122,7 +122,7 @@ void comp_lld_init(void) {
#if STM32_COMP_USE_COMP1
/* Driver initialization.*/
compObjectInit(&COMPD1);
- COMPD1.reg = COMP;
+ COMPD1.reg = COMP1;
COMPD1.reg->CSR = 0;
#if STM32_COMP_USE_INTERRUPTS
nvicEnableVector(COMP1_2_3_IRQn, STM32_COMP_1_2_3_IRQ_PRIORITY);