From 5af89ae596bf1c26afa385a441869ad7f7daab2f Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 8 May 2017 22:56:34 +0000 Subject: [PATCH] stm32f3: can: use CAN1 compatibility naming Makes it far easier to write portable code when CAN1 is always available, not having to decide between CAN and CAN1. --- include/libopencm3/stm32/f3/rcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libopencm3/stm32/f3/rcc.h b/include/libopencm3/stm32/f3/rcc.h index eeb1fbf3..a267d6ce 100644 --- a/include/libopencm3/stm32/f3/rcc.h +++ b/include/libopencm3/stm32/f3/rcc.h @@ -505,6 +505,7 @@ enum rcc_periph_clken { RCC_I2C2 = _REG_BIT(0x1C, 22),/*0178*/ RCC_USB = _REG_BIT(0x1C, 23),/*0178*/ RCC_CAN = _REG_BIT(0x1C, 25),/*0178*/ + RCC_CAN1 = _REG_BIT(0x1C, 25),/*0178*/ RCC_DAC2 = _REG_BIT(0x1C, 26), RCC_PWR = _REG_BIT(0x1C, 28),/*0178*/ RCC_DAC1 = _REG_BIT(0x1C, 29), @@ -552,6 +553,7 @@ enum rcc_periph_rst { RST_I2C2 = _REG_BIT(0x10, 22),/*0178*/ RST_USB = _REG_BIT(0x10, 23),/*0178*/ RST_CAN = _REG_BIT(0x10, 25),/*0178*/ + RST_CAN1 = _REG_BIT(0x10, 25),/*0178*/ RST_DAC2 = _REG_BIT(0x10, 26), RST_PWR = _REG_BIT(0x10, 28),/*0178*/ RST_DAC1 = _REG_BIT(0x10, 29),