Skip to content

Commit

Permalink
stm32: can: fix can_reset()
Browse files Browse the repository at this point in the history
Clearly staging branch testers weren't testing.
Also, clearly the separation of RST_ bits and RCC_ bits is a complicated
annoyance.

Fixes: d9615a2 update to modern include apis
  • Loading branch information
karlp committed Aug 25, 2017
1 parent 26ca4cc commit b0e050d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stm32/can.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ can_reg_base.
void can_reset(uint32_t canport)
{
if (canport == CAN1) {
rcc_periph_reset_pulse(RCC_CAN1);
rcc_periph_reset_pulse(RST_CAN1);
} else {
#if defined(BX_CAN2_BASE)
rcc_periph_reset_pulse(RCC_CAN2);
rcc_periph_reset_pulse(RST_CAN2);
#endif
}
}
Expand Down

0 comments on commit b0e050d

Please sign in to comment.