Skip to content

Commit

Permalink
Fix edges for stop/go
Browse files Browse the repository at this point in the history
  • Loading branch information
deltaphi committed Jan 17, 2021
1 parent d892cb4 commit bab8ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c6021light/src/hal/stm32I2C.cpp
Expand Up @@ -182,14 +182,14 @@ void beginI2C(uint8_t slaveAddress, freertossupport::OsTask routingTask) {
nvic_enable_irq(NVIC_EXTI4_IRQ);
nvic_set_priority(NVIC_EXTI4_IRQ, configMAX_SYSCALL_INTERRUPT_PRIORITY + 64);
exti_select_source(EXTI4, hal::MarklinBusGPIOMap::STOP.port);
exti_set_trigger(EXTI4, EXTI_TRIGGER_FALLING);
exti_set_trigger(EXTI4, EXTI_TRIGGER_RISING);
exti_enable_request(EXTI4);

// GO IRQ
nvic_enable_irq(NVIC_EXTI15_10_IRQ);
nvic_set_priority(NVIC_EXTI15_10_IRQ, configMAX_SYSCALL_INTERRUPT_PRIORITY + 64);
exti_select_source(EXTI15, hal::MarklinBusGPIOMap::GO.port);
exti_set_trigger(EXTI15, EXTI_TRIGGER_FALLING);
exti_set_trigger(EXTI15, EXTI_TRIGGER_RISING);
exti_enable_request(EXTI15);
}

Expand Down

0 comments on commit bab8ea4

Please sign in to comment.