Merge pull request #375 from stevstrong/patch-3
Update timer.h to fix issue with false interrupt when first enabling it
This commit is contained in:
commit
bb75679b54
|
@ -828,6 +828,7 @@ static inline void timer_dma_disable_req(timer_dev *dev, uint8 channel) {
|
|||
* @see timer_channel
|
||||
*/
|
||||
static inline void timer_enable_irq(timer_dev *dev, uint8 interrupt) {
|
||||
*bb_perip(&(dev->regs).adv->SR, interrupt) = 0; // clear interrupt flag
|
||||
*bb_perip(&(dev->regs).adv->DIER, interrupt) = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue