Skip to content

Commit 85a1729

Browse files
committed
Enable I2CSLAVE for nRF52 targets
1 parent c8ab263 commit 85a1729

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/config/sdk_config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,20 +3908,20 @@
39083908
// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
39093909
//==========================================================
39103910
#ifndef NRFX_TWIS_ENABLED
3911-
#define NRFX_TWIS_ENABLED 0
3911+
#define NRFX_TWIS_ENABLED 1
39123912
#endif
39133913
// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
39143914

39153915

39163916
#ifndef NRFX_TWIS0_ENABLED
3917-
#define NRFX_TWIS0_ENABLED 0
3917+
#define NRFX_TWIS0_ENABLED 1
39183918
#endif
39193919

39203920
// <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
39213921

39223922

39233923
#ifndef NRFX_TWIS1_ENABLED
3924-
#define NRFX_TWIS1_ENABLED 0
3924+
#define NRFX_TWIS1_ENABLED 1
39253925
#endif
39263926

39273927
// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/config/sdk_config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,20 +3908,20 @@
39083908
// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
39093909
//==========================================================
39103910
#ifndef NRFX_TWIS_ENABLED
3911-
#define NRFX_TWIS_ENABLED 0
3911+
#define NRFX_TWIS_ENABLED 1
39123912
#endif
39133913
// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
39143914

39153915

39163916
#ifndef NRFX_TWIS0_ENABLED
3917-
#define NRFX_TWIS0_ENABLED 0
3917+
#define NRFX_TWIS0_ENABLED 1
39183918
#endif
39193919

39203920
// <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
39213921

39223922

39233923
#ifndef NRFX_TWIS1_ENABLED
3924-
#define NRFX_TWIS1_ENABLED 0
3924+
#define NRFX_TWIS1_ENABLED 1
39253925
#endif
39263926

39273927
// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once

targets/targets.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11183,6 +11183,7 @@
1118311183
"FLASH",
1118411184
"I2C",
1118511185
"I2C_ASYNCH",
11186+
"I2C_SLAVE",
1118611187
"INTERRUPTIN",
1118711188
"ITM",
1118811189
"LPTICKER",
@@ -11567,6 +11568,7 @@
1156711568
"FLASH",
1156811569
"I2C",
1156911570
"I2C_ASYNCH",
11571+
"I2C_SLAVE",
1157011572
"INTERRUPTIN",
1157111573
"ITM",
1157211574
"LPTICKER",

0 commit comments

Comments
 (0)