From 689765cb48cf0a55808c8e647d5deeefc4b3edf9 Mon Sep 17 00:00:00 2001
From: Matteo Pignataro <matteo.pignataro@skywarder.eu>
Date: Thu, 10 Aug 2023 10:18:59 +0000
Subject: [PATCH] [I2C] Added architectures to IFDEF instead of single boards

---
 src/shared/drivers/i2c/I2CDriver-f7.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/shared/drivers/i2c/I2CDriver-f7.cpp b/src/shared/drivers/i2c/I2CDriver-f7.cpp
index 23678afbd..38b591ed3 100644
--- a/src/shared/drivers/i2c/I2CDriver-f7.cpp
+++ b/src/shared/drivers/i2c/I2CDriver-f7.cpp
@@ -74,10 +74,9 @@ I2CTimings calculateTimings(uint32_t f, uint32_t fi2c)
     // for SCLDEL and SDADEL
     uint32_t temp_presc = f / (64 * fi2c);
 
-#if defined(_BOARD_STM32F756ZG_NUCLEO)
+#if defined(STM32F756xx)
     const uint16_t correction = 10;
-#elif defined(_BOARD_STM32F767ZI_COMPUTE_UNIT) || \
-    defined(_BOARD_STM32F767ZI_NUCLEO)
+#elif defined(STM32F767xx)
     const uint16_t correction = 7;
 #else
     const uint16_t correction = 0;
-- 
GitLab