Skip to content

Commit 04cd13f

Browse files
nrf52820_microbit: Set I2C protocol to v1 until busy flag is implemented.
1 parent 97c3c32 commit 04cd13f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/board/microbitv2/i2c_commands.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ extern "C" {
3737
#define I2C_SLAVE_HID (0x71U)
3838
#define I2C_SLAVE_FLASH (0x72U)
3939

40+
// Busy flag not yet implemented in nRF52
41+
#if defined(INTERFACE_NRF52820)
42+
#define I2C_PROTOCOL_VERSION (0x01)
43+
#else
4044
#define I2C_PROTOCOL_VERSION (0x02)
45+
#endif
4146

4247
/*! i2c command Id type enumeration */
4348
typedef enum cmdId_tag {

0 commit comments

Comments
 (0)