Moving MatrixARM header macros to separate file
This commit is contained in:
		
							parent
							
								
									4a1aeb8af8
								
							
						
					
					
						commit
						ccd52d6b8f
					
				
					 2 changed files with 38 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -22,13 +22,10 @@
 | 
			
		|||
#ifndef __MATRIX_H
 | 
			
		||||
#define __MATRIX_H
 | 
			
		||||
 | 
			
		||||
// ----- Macros -----
 | 
			
		||||
// ----- Includes -----
 | 
			
		||||
 | 
			
		||||
// Convenience Macros
 | 
			
		||||
#define gpio( port, pin ) { Port_##port, Pin_##pin }
 | 
			
		||||
#define Matrix_colsNum sizeof( Matrix_cols ) / sizeof( GPIO_Pin )
 | 
			
		||||
#define Matrix_rowsNum sizeof( Matrix_rows ) / sizeof( GPIO_Pin )
 | 
			
		||||
#define Matrix_maxKeys sizeof( Matrix_scanArray ) / sizeof( KeyState )
 | 
			
		||||
// Project Includes
 | 
			
		||||
#include <matrix_setup.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue