1
0

Add compiler_support.h (#25274)

This commit is contained in:
Pablo Martínez
2025-05-22 15:31:15 +02:00
committed by GitHub
parent fa24b0fcce
commit 955809bd5a
36 changed files with 142 additions and 81 deletions

View File

@@ -22,6 +22,8 @@
#pragma once
#include "compiler_support.h"
#ifndef I2C_SLAVE_REG_COUNT
# if defined(USE_I2C) && defined(SPLIT_COMMON_TRANSACTIONS)
@@ -33,7 +35,7 @@
#endif // I2C_SLAVE_REG_COUNT
_Static_assert(I2C_SLAVE_REG_COUNT < 256, "I2C target registers must be single byte");
STATIC_ASSERT(I2C_SLAVE_REG_COUNT < 256, "I2C target registers must be single byte");
extern volatile uint8_t i2c_slave_reg[I2C_SLAVE_REG_COUNT];