[riot-notifications] [RIOT-OS/RIOT] cpu/nrf52: Add i2c reconfigure feature (#15527)

Lena notifications at github.com
Mon Nov 30 17:12:40 CET 2020


@Einhornhool commented on this pull request.



> +    gpio_init(i2c_config[dev].sda, GPIO_IN_OD_PU);
+    bus(dev)->PSEL.SCL = i2c_config[dev].scl;
+    bus(dev)->PSEL.SDA = i2c_config[dev].sda;
+
+    bus(dev)->ENABLE = TWIM_ENABLE_ENABLE_Enabled;
+
+    mutex_unlock(&locks[dev]);
+}
+
+void i2c_deinit_pins(i2c_t dev)
+{
+    assert(dev < I2C_NUMOF);
+
+    mutex_lock(&locks[dev]);
+    bus(dev)->ENABLE = TWIM_ENABLE_ENABLE_Disabled;
+

Thanks for the quick feedback. 
Does that mean, you want me to remove this?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15527#discussion_r532715540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201130/2fe197e6/attachment.htm>


More information about the notifications mailing list