X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2FMD1%2Fmatrix.h;h=10a15d75da18430c6bfa98d822edc182f372dbba;hb=5f262ea4b68a07e9b94ce0a49c0f7196e5f32b3b;hp=7241e0e896e50d71c495c149cec0152e763e503d;hpb=19f42b0a81b56706db4ed7ea14e28ee146cd920a;p=kiibohd-controller.git diff --git a/Scan/MD1/matrix.h b/Scan/MD1/matrix.h index 7241e0e..10a15d7 100644 --- a/Scan/MD1/matrix.h +++ b/Scan/MD1/matrix.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 by Jacob Alexander +/* Copyright (C) 2014-2015 by Jacob Alexander * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -19,16 +19,12 @@ * THE SOFTWARE. */ -#ifndef __MATRIX_H -#define __MATRIX_H +#pragma once -// ----- 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 @@ -58,6 +54,3 @@ GPIO_Pin Matrix_rows[] = { gpio(D,1), gpio(D,2), gpio(D,3), gpio(D,4), gpio(D,5) // Define type of scan matrix Config Matrix_type = Config_Pulldown; - -#endif // __MATRIX_H -