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: d9615a2eb7 update to modern include apis
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user