Breaking the whole thing into modules using C preprocessor macros.
[cerebrum.git] / inputs.h
blobaf7e75bbc782ce7b02a436f8dbe2940b104c5f86
2 #ifndef __INPUTS_H__
3 #define __INPUTS_H__
4 #ifdef HAS_INPUT_SUPPORT
5 #include <avr/io.h>
7 uint8_t debounce_timeouts[INPUT_COUNT];
8 uint8_t switch_states[INPUT_COUNT];
10 void input_setup(void);
11 void input_loop(void);
13 #else//HAS_INPUT_SUPPORT
15 void input_setup(){}
16 void input_loop(){}
18 #endif//HAS_INPUT_SUPPORT
19 #endif//__INPUTS_H__