Adding initial matrix configuration structure

- Uses strobe setup from MatrixARM
- New mapping for ADC sense
- Initial ADC setup code (not optimized or configurable yet)
This commit is contained in:
Jacob Alexander 2016-04-17 16:03:10 -07:00
parent 39dbb85c1a
commit 271b0af9b9
4 changed files with 293 additions and 3 deletions

View file

@ -16,5 +16,12 @@
#pragma once
// TODO
// ----- Macros -----
// Convenience Macros
#define gpio( port, pin ) { Port_##port, Pin_##pin }
#define sense( port, pin, adc, ch ) { Port_##port, Pin_##pin, ADC_##adc, Channel_##ch }
#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 )