From 768ed297f2434954acfdfd1e672a97850178c50c Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 3 Sep 2020 05:09:50 -0700 Subject: [PATCH] uavcan_stm32h7:Support is by Family Not Chip/pacakge --- .../stm32h7/driver/include/uavcan_stm32h7/fdcan.hpp | 4 ++-- .../include/uavcan_stm32h7/{fdcan_h743xx.h => fdcan_h7x3xx.h} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/{fdcan_h743xx.h => fdcan_h7x3xx.h} (100%) diff --git a/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan.hpp b/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan.hpp index 1704f43252..077e47c06f 100644 --- a/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan.hpp +++ b/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan.hpp @@ -23,8 +23,8 @@ namespace uavcan_stm32h7 { namespace fdcan { -#ifdef CONFIG_ARCH_CHIP_STM32H743ZI -#include "fdcan_h743xx.h" +#ifdef CONFIG_STM32H7_STM32H7X3XX +#include "fdcan_h7x3xx.h" #else # error "Unsupported STM32H7 MCU" #endif diff --git a/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan_h743xx.h b/src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan_h7x3xx.h similarity index 100% rename from src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan_h743xx.h rename to src/drivers/uavcan/uavcan_drivers/stm32h7/driver/include/uavcan_stm32h7/fdcan_h7x3xx.h