Add compiler_support.h (#25274)
				
					
				
			This commit is contained in:
		
							parent
							
								
									fa24b0fcce
								
							
						
					
					
						commit
						955809bd5a
					
				
					 36 changed files with 142 additions and 81 deletions
				
			
		|  | @ -23,6 +23,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | |||
| #        include "keyboard.h" | ||||
| #    endif | ||||
| #endif | ||||
| 
 | ||||
| #include "compiler_support.h" | ||||
| #include "oled_driver.h" | ||||
| #include OLED_FONT_H | ||||
| #include "timer.h" | ||||
|  | @ -601,7 +603,7 @@ void oled_write_char(const char data, bool invert) { | |||
|     static uint8_t oled_temp_buffer[OLED_FONT_WIDTH]; | ||||
|     memcpy(&oled_temp_buffer, oled_cursor, OLED_FONT_WIDTH); | ||||
| 
 | ||||
|     _Static_assert(sizeof(font) >= ((OLED_FONT_END + 1 - OLED_FONT_START) * OLED_FONT_WIDTH), "OLED_FONT_END references outside array"); | ||||
|     STATIC_ASSERT(sizeof(font) >= ((OLED_FONT_END + 1 - OLED_FONT_START) * OLED_FONT_WIDTH), "OLED_FONT_END references outside array"); | ||||
| 
 | ||||
|     // set the reder buffer data
 | ||||
|     uint8_t cast_data = (uint8_t)data; // font based on unsigned type for index
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Pablo Martínez
						Pablo Martínez