From 9b0cf96ecdce8f85828f810d5a7afca2f7bfdd4f Mon Sep 17 00:00:00 2001 From: Hendrik van Essen Date: Tue, 14 Feb 2023 17:50:11 +0100 Subject: [PATCH] cpu/sam0_common: add PERIPH_I2C_MAX_BYTES_PER_FRAME due to I2C limitations --- cpu/sam0_common/include/periph_cpu_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/sam0_common/include/periph_cpu_common.h b/cpu/sam0_common/include/periph_cpu_common.h index 9e992b1843..0bad87b265 100644 --- a/cpu/sam0_common/include/periph_cpu_common.h +++ b/cpu/sam0_common/include/periph_cpu_common.h @@ -56,6 +56,11 @@ extern "C" { #define PERIPH_I2C_NEED_WRITE_REGS /** @} */ +/** + * @brief Maximum bytes per frame for I2C operations + */ +#define PERIPH_I2C_MAX_BYTES_PER_FRAME 256 + /** * @brief Override GPIO type * @{