Add compiler_support.h (#25274)
				
					
				
			This commit is contained in:
		
							parent
							
								
									fa24b0fcce
								
							
						
					
					
						commit
						955809bd5a
					
				
					 36 changed files with 142 additions and 81 deletions
				
			
		| 
						 | 
				
			
			@ -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];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue