We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42db18e commit 9116911Copy full SHA for 9116911
ports/nordic/common-hal/busio/I2C.c
@@ -21,10 +21,10 @@
21
// all TWI instances have the same max size
22
// 16 bits for 840, 10 bits for 810, 8 bits for 832
23
#define I2C_MAX_XFER_LEN MIN(((1UL << TWIM0_EASYDMA_MAXCNT_SIZE) - 1), 1024)
24
-#define I2C_TIMEOUT 1000 // 1 second timeout
+// 1 second timeout
25
+#define I2C_TIMEOUT 1000
26
-static
27
- twim_peripheral_t twim_peripherals[] = {
+static twim_peripheral_t twim_peripherals[] = {
28
#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
29
// SPIM0 and TWIM0 share an address.
30
{ .twim = NRFX_TWIM_INSTANCE(0),
0 commit comments