stm32: can: fix can_reset()

Clearly staging branch testers weren't testing.
Also, clearly the separation of RST_ bits and RCC_ bits is a complicated
annoyance.

Fixes: d9615a2eb728 update to modern include apis
This commit is contained in:
Karl Palsson 2017-08-25 09:44:03 +00:00
parent 26ca4cc88a
commit b0e050d10d

View File

@ -63,10 +63,10 @@ can_reg_base.
void can_reset(uint32_t canport) void can_reset(uint32_t canport)
{ {
if (canport == CAN1) { if (canport == CAN1) {
rcc_periph_reset_pulse(RCC_CAN1); rcc_periph_reset_pulse(RST_CAN1);
} else { } else {
#if defined(BX_CAN2_BASE) #if defined(BX_CAN2_BASE)
rcc_periph_reset_pulse(RCC_CAN2); rcc_periph_reset_pulse(RST_CAN2);
#endif #endif
} }
} }