8000 try disabling sub 1 clock cycle clock stretching for 100khz, this may… · sparkfun/mbed-os-ambiq-apollo3@90230bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 90230bb

Browse files
committed
try disabling sub 1 clock cycle clock stretching for 100khz, this may help with problems with nak being seen as acks when clock stretching present
1 parent b09aae5 commit 90230bb

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal

1 file changed

+1
-1
lines changed

targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_iom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ am_hal_iom_configure(void *pHandle, am_hal_iom_config_t *psConfig)
21992199
_VAL2FLD(IOM0_CLKCFG_DIV3, IOM0_CLKCFG_DIV3_DIS) |
22002200
_VAL2FLD(IOM0_CLKCFG_FSEL, IOM0_CLKCFG_FSEL_HFRC_DIV2) |
22012201
_VAL2FLD(IOM0_CLKCFG_IOCLKEN, 1);
2202-
IOMn(ui32Module)->MI2CCFG = _VAL2FLD(IOM0_MI2CCFG_STRDIS, 0) |
2202+
IOMn(ui32Module)->MI2CCFG = _VAL2FLD(IOM0_MI2CCFG_STRDIS, 1) |
22032203
_VAL2FLD(IOM0_MI2CCFG_SMPCNT, 3) |
22042204
_VAL2FLD(IOM0_MI2CCFG_SDAENDLY, 15) |
22052205
_VAL2FLD(IOM0_MI2CCFG_SCLENDLY, 0) |

0 commit comments

Comments
 (0)
0