Fixed COMP1 peripheral name

This commit is contained in:
Fabien Poussin 2019-09-17 14:57:16 +02:00
parent 9483bacf88
commit a8bd0ca9da
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void comp_lld_init(void) {
#if STM32_COMP_USE_COMP1 #if STM32_COMP_USE_COMP1
/* Driver initialization.*/ /* Driver initialization.*/
compObjectInit(&COMPD1); compObjectInit(&COMPD1);
COMPD1.reg = COMP; COMPD1.reg = COMP1;
COMPD1.reg->CSR = 0; COMPD1.reg->CSR = 0;
#if STM32_COMP_USE_INTERRUPTS #if STM32_COMP_USE_INTERRUPTS
nvicEnableVector(COMP1_2_3_IRQn, STM32_COMP_1_2_3_IRQ_PRIORITY); nvicEnableVector(COMP1_2_3_IRQn, STM32_COMP_1_2_3_IRQ_PRIORITY);