Statistics
| Branch: | Tag: | Revision:

root / MatrixScan.h @ 12653b5a

History | View | Annotate | Download (754 Bytes)

1
#include <LUFA/Drivers/USB/USB.h>
2

    
3
#ifndef __matrixscan_h__
4
#define __matrixscan_h__
5

    
6
#include "Matrix.h"
7

    
8
#define SHIFTREGPORT PORTC
9
#define SHIFTREGDDR DDRC
10
#define SRDATAPIN PC6
11
#define SRCLKPIN PC7
12

    
13
#define SHIFTREGRESETPORT PORTE
14
#define SHIFTREGRESETDDR DDRE
15
#define SHIFTREGRESETPIN PE6
16

    
17
#define DATAINPORT PORTB
18
#define DATAINPIN PINB
19
#define DATAINDDR DDRB
20
#define DIN_0 PB0
21
#define DIN_1 PB1
22
#define DIN_2 PB2
23
#define DIN_3 PB3
24
#define DIN_4 PB4
25
#define DIN_5 PB5
26
#define DIN_6 PB6
27
#define DIN_7 PB7
28

    
29

    
30
void clearSR(void);
31
void clockSR(void);
32
void pushBit(uint8_t bit);
33
void setupMatrix(void);
34
void setReportData(USB_KeyboardReport_Data_t* const ReportData);
35
void addKeystroke(uint8_t row, uint8_t col);
36
void decrementKeystrokes(void);
37

    
38

    
39
#endif