Rev 761 | Rev 772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 761 | Rev 762 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | * along with this program; if not, write to the * |
16 | * along with this program; if not, write to the * |
17 | * Free Software Foundation, Inc., * |
17 | * Free Software Foundation, Inc., * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ****************************************************************************/ |
19 | ****************************************************************************/ |
Line -... | Line 20... | ||
- | 20 | ||
- | 21 | #ifndef _MAIN_H |
|
- | 22 | #define _MAIN_H |
|
20 | 23 | ||
21 | #include <avr/pgmspace.h> |
24 | #include <avr/pgmspace.h> |
Line 22... | Line 25... | ||
22 | #include "mk-data-structs.h" |
25 | #include "mk-data-structs.h" |
23 | 26 | ||
Line 104... | Line 107... | ||
104 | * switch controll |
107 | * switch controll |
105 | * ##########################################################################*/ |
108 | * ##########################################################################*/ |
106 | #define S1_PRESSED !(PINC & (1<<PC5)) |
109 | #define S1_PRESSED !(PINC & (1<<PC5)) |
107 | #define S2_PRESSED !(PINC & (1<<PC4)) |
110 | #define S2_PRESSED !(PINC & (1<<PC4)) |
Line -... | Line 111... | ||
- | 111 | ||
108 | 112 | ||
109 | /* ########################################################################## |
113 | /* ########################################################################## |
110 | * extern spi controlled vars |
114 | * extern spi controlled vars |
111 | * ##########################################################################*/ |
115 | * ##########################################################################*/ |
112 | extern volatile uint16_t icnt; |
116 | extern volatile uint16_t icnt; |
Line 174... | Line 178... | ||
174 | // flags from last round to check for changes |
178 | // flags from last round to check for changes |
175 | uint8_t old_MKFlags; |
179 | uint8_t old_MKFlags; |
Line 176... | Line 180... | ||
176 | 180 | ||
177 | const char *directions[8]; |
181 | const char *directions[8]; |
- | 182 | const char *stats_item_pointers[8]; |
|
- | 183 |