We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 757493c commit bca9a7eCopy full SHA for bca9a7e
libraries/Wire/src/utility/twi.h
@@ -61,7 +61,11 @@ extern "C" {
61
#endif
62
63
/* I2C Tx/Rx buffer size */
64
+#if !defined(I2C_TXRX_BUFFER_SIZE)
65
#define I2C_TXRX_BUFFER_SIZE 32
66
+#elif (I2C_TXRX_BUFFER_SIZE >= 256)
67
+#error I2C buffer size cannot exceed 255
68
+#endif
69
70
/* Redefinition of IRQ for F0/G0/L0 families */
71
#if defined(STM32F0xx) || defined(STM32G0xx) || defined(STM32L0xx)
0 commit comments