Subversion Repositories Code-Repo

Rev

Rev 260 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 260 Rev 270
Line 61... Line 61...
61
 
61
 
62
typedef union {
62
typedef union {
63
    struct {
63
    struct {
64
        unsigned BTN_L_N    :1;
64
        unsigned BTN_L_N    :1;
65
        unsigned BTN_L_E    :1;
65
        unsigned BTN_L_E    :1;
66
        unsigned BTN_L_S    :1;
-
 
67
        unsigned BTN_L_W    :1;
-
 
68
        unsigned BTN_R_N    :1;
-
 
69
        unsigned BTN_R_E    :1;
66
        unsigned BTN_R_E    :1;
-
 
67
        unsigned BTN_R_N    :1;
70
        unsigned BTN_R_S    :1;
68
        unsigned BTN_R_S    :1;
71
        unsigned BTN_R_W    :1;
69
        unsigned BTN_R_W    :1;
-
 
70
        unsigned BTN_L_S    :1;
-
 
71
        unsigned BTN_L_W    :1;
72
    };
72
    };
73
    uint8_t w;
73
    uint8_t w;
74
} BTN_STATUS;
74
} BTN_STATUS;
75
 
75
 
76
typedef union {
76
typedef union {
77
    struct {
77
    struct {
78
        unsigned LED_A      :1;
78
        uint8_t LED_0;
79
        unsigned LED_B      :1;
79
        uint8_t LED_1;
80
        unsigned LED_C      :1;
80
        uint8_t LED_2;
81
        unsigned LED_D      :1;
81
        uint8_t LED_3;
82
        unsigned LED_1      :1;
82
        uint8_t LED_4;
83
        unsigned LED_2      :1;
83
        uint8_t LED_5;
84
        unsigned LED_3      :1;
84
        uint8_t LED_6;
85
        unsigned LED_4      :1;
85
        uint8_t LED_7;
86
        unsigned LED_5      :1;
86
        uint8_t LED_N;
87
        unsigned LED_6      :1;
87
        uint8_t LED_W;
88
        unsigned LED_7      :1;
88
        uint8_t LED_E;
89
        unsigned LED_8      :1;
89
        uint8_t LED_S;
90
        unsigned LED_N      :1;
90
        uint8_t LED_A;
91
        unsigned LED_E      :1;
91
        uint8_t LED_B;
92
        unsigned LED_S      :1;
92
        uint8_t LED_C;
93
        unsigned LED_W      :1;
93
        uint8_t LED_D;
94
    };
94
    } single;
95
    uint8_t w[2];
95
    uint8_t w[16];
96
} LED_STATUS;
96
} LED_VALUES;
97
 
97
 
98
void Pins_Read(BTN_STATUS *btns);
-
 
99
void Leds_Write(LED_STATUS *leds);
98
void Idle_Animation(void);
100
 
99
 
101
#endif	/* DEFINES_H */
100
#endif	/* DEFINES_H */
102
 
101