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:
parent
26ca4cc88a
commit
b0e050d10d
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user