Skip to content

Commit 673c32a

Browse files
committed
fix(i3c): guard family-specific end-of-frame configuration
Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
1 parent 17ee01c commit 673c32a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎libraries/I3C/src/I3C.cpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,13 @@ bool I3CBus::begin(uint32_t freq,
295295
local_ok = false;
296296
}
297297
}
298+
#if defined(I3C_END_OF_FRAME_CPLT_ENABLE)
299+
if (local_ok) {
300+
if (HAL_I3C_SetConfigEndOfFrame(&_hi3c, I3C_END_OF_FRAME_CPLT_ENABLE) != HAL_OK) {
301+
local_ok = false;
302+
}
303+
}
304+
#endif
298305

299306
if (local_ok) {
300307
I3C_FifoConfTypeDef fifoCfg {};

0 commit comments

Comments
 (0)