From a8bd0ca9da23f75897fe466db179c3da34a8a946 Mon Sep 17 00:00:00 2001 From: Fabien Poussin Date: Tue, 17 Sep 2019 14:57:16 +0200 Subject: Fixed COMP1 peripheral name --- os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports/STM32/LLD/COMPv1') 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); -- cgit v1.2.3