From 56e08d653c4c1e104c80adf0c6d7da62fb83e8e5 Mon Sep 17 00:00:00 2001 From: Stevie Hryciw Date: Tue, 9 Jul 2024 23:02:48 -0700 Subject: [PATCH] rp2040: remove redendant code in I2C.apply() (#212) --- bsp/raspberrypi/rp2040/src/hal/i2c.zig | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bsp/raspberrypi/rp2040/src/hal/i2c.zig b/bsp/raspberrypi/rp2040/src/hal/i2c.zig index a6c1517..cacdbb6 100644 --- a/bsp/raspberrypi/rp2040/src/hal/i2c.zig +++ b/bsp/raspberrypi/rp2040/src/hal/i2c.zig @@ -79,13 +79,6 @@ pub const I2C = enum(u1) { i2c.disable(); - regs.IC_ENABLE.write(.{ - .ENABLE = .{ .value = .DISABLED }, - .ABORT = .{ .value = .DISABLE }, - .TX_CMD_BLOCK = .{ .value = .NOT_BLOCKED }, - .padding = 0, - }); - // Configure as a fast-mode master with RepStart support, 7-bit addresses regs.IC_CON.write(.{ .MASTER_MODE = .{ .value = .ENABLED },