Add compiler_support.h (#25274)
				
					
				
			This commit is contained in:
		
							parent
							
								
									fa24b0fcce
								
							
						
					
					
						commit
						955809bd5a
					
				
					 36 changed files with 142 additions and 81 deletions
				
			
		| 
						 | 
				
			
			@ -20,6 +20,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#include <stdint.h>
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
 | 
			
		||||
#include "compiler_support.h"
 | 
			
		||||
 | 
			
		||||
#ifndef BACKLIGHT_LEVELS
 | 
			
		||||
#    define BACKLIGHT_LEVELS 3
 | 
			
		||||
#elif BACKLIGHT_LEVELS > 31
 | 
			
		||||
| 
						 | 
				
			
			@ -44,7 +46,7 @@ typedef union backlight_config_t {
 | 
			
		|||
    };
 | 
			
		||||
} backlight_config_t;
 | 
			
		||||
 | 
			
		||||
_Static_assert(sizeof(backlight_config_t) == sizeof(uint8_t), "Backlight EECONFIG out of spec.");
 | 
			
		||||
STATIC_ASSERT(sizeof(backlight_config_t) == sizeof(uint8_t), "Backlight EECONFIG out of spec.");
 | 
			
		||||
 | 
			
		||||
void    backlight_init(void);
 | 
			
		||||
void    backlight_toggle(void);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue