Subversion Repositories Projects

Rev

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
 ****************************************************************************/
20
 
20
 
-
 
21
#ifndef _MAIN_H
-
 
22
#define _MAIN_H
-
 
23
 
21
#include <avr/pgmspace.h>
24
#include <avr/pgmspace.h>
22
#include "mk-data-structs.h"
25
#include "mk-data-structs.h"
23
 
26
 
24
/* ##########################################################################
27
/* ##########################################################################
25
 * Debugging and general purpose definitions
28
 * Debugging and general purpose definitions
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))
108
 
111
 
-
 
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;
113
extern volatile unsigned char * iptr;
117
extern volatile unsigned char * iptr;
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;
176
 
180
 
177
const char *directions[8];
181
const char *directions[8];
178
const char *stats_item_pointers[8];
182
const char *stats_item_pointers[8];
-
 
183
 
-
 
184
#endif