From b0e050d10d12c42be031c34822117cfd3c5a0ea7 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 25 Aug 2017 09:44:03 +0000 Subject: [PATCH] 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 --- lib/stm32/can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stm32/can.c b/lib/stm32/can.c index a1447d22..44a6cd65 100644 --- a/lib/stm32/can.c +++ b/lib/stm32/can.c @@ -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 } }