Moving MatrixARM header macros to separate file

This commit is contained in:
Jacob Alexander 2014-12-21 07:32:51 -08:00
parent 4a1aeb8af8
commit ccd52d6b8f
2 changed files with 38 additions and 6 deletions

View file

@ -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>