Statistics
| Branch: | Tag: | Revision:

root / MatrixScan.h @ de87a8c5

History | View | Annotate | Download (584 Bytes)

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

    
4
#ifndef __matrixscan_h__
5
#define __matrixscan_h__
6

    
7

    
8
#define SHIFTREGPORT PORTC
9
#define SHIFTREGDDR DDRC
10
#define SRDATAPIN PC7
11
#define SRCLKPIN PC6
12
#define DATAINPORT PORTD
13
#define DATAINPIN PIND
14
#define DATAINDDR DDRD
15
#define DIN_0 PD0
16
#define DIN_1 PD1
17
#define DIN_2 PD2
18
#define DIN_3 PD3
19
#define DIN_4 PD4
20
#define DIN_5 PD5
21
#define DIN_6 PD6
22
#define DIN_7 PD7
23

    
24

    
25
void clearSR(void);
26
void clockSR(void);
27
void pushBit(uint8_t bit);
28
void setupMatrix(void);
29
void setReportData(USB_KeyboardReport_Data_t* const ReportData);
30

    
31

    
32
#endif