repo.or.cz
/
cerebrum.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Breaking the whole thing into modules using C preprocessor macros.
[cerebrum.git]
/
inputs.h
blob
af7e75bbc782ce7b02a436f8dbe2940b104c5f86
1
2
#ifndef __INPUTS_H__
3
#define __INPUTS_H__
4
#ifdef HAS_INPUT_SUPPORT
5
#include <avr/io.h>
6
7
uint8_t
debounce_timeouts
[
INPUT_COUNT
];
8
uint8_t
switch_states
[
INPUT_COUNT
];
9
10
void
input_setup
(
void
);
11
void
input_loop
(
void
);
12
13
#else
//HAS_INPUT_SUPPORT
14
15
void
input_setup
(){}
16
void
input_loop
(){}
17
18
#endif
//HAS_INPUT_SUPPORT
19
#endif
//__INPUTS_H__