Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CI/build/examples/BareMinimum/BareMinimum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <SPI.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#if (defined(I3C1_BASE) || defined(I3C2_BASE)) && defined(HAL_I3C_MODULE_ENABLED)
#if defined(I3C1_BASE) || defined(I3C2_BASE)
#include <I3C.h>
#endif

Expand Down Expand Up @@ -137,7 +137,7 @@ void setup() {
Wire.requestFrom(2, 1);
Wire.end();

#if (defined(I3C1_BASE) || defined(I3C2_BASE)) && defined(HAL_I3C_MODULE_ENABLED)
#if defined(I3C1_BASE) || defined(I3C2_BASE)
// I3C
I3C.setBusType(I3CBusType::Pure);
I3C.setMixedBusOpenDrainFrequency(1000000U);
Expand Down
10 changes: 10 additions & 0 deletions cores/arduino/stm32/stm32yyxx_hal_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@
#define USE_HAL_I2S_MODULE 1U
#endif

#if defined(HAL_I3C_MODULE_DISABLED)
#if defined(USE_HAL_I3C_MODULE)
#undef USE_HAL_I3C_MODULE
#endif
#define USE_HAL_I3C_MODULE 0U
#else
#define USE_HAL_I3C_MODULE 1U
#define USE_HAL_I3C_GET_LAST_ERRORS 0U
#endif

#if defined(HAL_RTC_MODULE_DISABLED)
#if defined(USE_HAL_RTC_MODULE)
#undef USE_HAL_RTC_MODULE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void setup() {
Serial.print("DA = 0x");
Serial.println(I3C.address(), HEX);

HAL_I3C_FlushAllFifo(I3C.halHandle());
Serial.printf("flushAllFifos = %s\n", (I3C.flushAllFifos()) ? "true" : "false");

int rc = I3C.receive(rxBuf, sizeof(rxBuf), 10000);
Serial.print("receive rc = ");
Expand Down
Loading
Loading