summaryrefslogtreecommitdiff
path: root/include/hw/i2c/microbit_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/i2c/microbit_i2c.h')
-rw-r--r--include/hw/i2c/microbit_i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i2c/microbit_i2c.h b/include/hw/i2c/microbit_i2c.h
index aad636127e..2bff36680c 100644
--- a/include/hw/i2c/microbit_i2c.h
+++ b/include/hw/i2c/microbit_i2c.h
@@ -29,7 +29,7 @@
#define MICROBIT_I2C(obj) \
OBJECT_CHECK(MicrobitI2CState, (obj), TYPE_MICROBIT_I2C)
-#define MICROBIT_I2C_NREGS (NRF51_TWI_SIZE / sizeof(uint32_t))
+#define MICROBIT_I2C_NREGS (NRF51_PERIPHERAL_SIZE / sizeof(uint32_t))
typedef struct {
SysBusDevice parent_obj;