aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c/microbit_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/i2c/microbit_i2c.c')
-rw-r--r--hw/i2c/microbit_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/microbit_i2c.c b/hw/i2c/microbit_i2c.c
index 4661f05..8024739 100644
--- a/hw/i2c/microbit_i2c.c
+++ b/hw/i2c/microbit_i2c.c
@@ -100,7 +100,7 @@ static void microbit_i2c_realize(DeviceState *dev, Error **errp)
MicrobitI2CState *s = MICROBIT_I2C(dev);
memory_region_init_io(&s->iomem, OBJECT(s), &microbit_i2c_ops, s,
- "microbit.twi", NRF51_TWI_SIZE);
+ "microbit.twi", NRF51_PERIPHERAL_SIZE);
sysbus_init_mmio(sbd, &s->iomem);
}