Skip to content

Commit ea5d860

Browse files
committed
chore(i3c): disable for HALv2 support
I3C required some rework to support HALv2 driver, so disable it for now. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 1dfb54b commit ea5d860

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎CI/build/examples/BareMinimum/BareMinimum.ino‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <SPI.h>
1515
#include <SoftwareSerial.h>
1616
#include <Wire.h>
17-
#if defined(I3C1_BASE)
17+
#if defined(I3C1_BASE) && defined(HAL_I3C_MODULE_ENABLED)
1818
#include <I3C.h>
1919
#endif
2020

@@ -135,7 +135,7 @@ void setup() {
135135
Wire.requestFrom(2, 1);
136136
Wire.end();
137137

138-
#if defined(I3C1_BASE)
138+
#if defined(I3C1_BASE) && defined(HAL_I3C_MODULE_ENABLED)
139139
// I3C
140140
I3C1Bus.setBusType(I3CBusType::Pure);
141141
I3C1Bus.setMixedBusOpenDrainFrequency(1000000U);

‎libraries/I3C/src/I3C.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#if defined(I3C1_BASE) || defined(I3C2_BASE)
66

7+
#if defined(USE_HALV2_DRIVER)
8+
#error "I3C library is not yet compatible with HALv2 driver."
9+
#endif
10+
711
#include "stm32yyxx_util_i3c.h"
812

913
// ============================================================================

0 commit comments

Comments
 (0)