File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 131
131
#define LED_7_PORT (&stm_gpioa)
132
132
#define LED_7_PIN 10
133
133
134
- #define AO_LED_CONTINUITY (c ) (1 << (c))
134
+ #define AO_LED_CONTINUITY (c ) ((AO_LED_TYPE) ( 1 << (c) ))
135
135
#define AO_LED_CONTINUITY_MASK (0xff)
136
136
137
137
/* ARM */
Original file line number Diff line number Diff line change 116
116
#define LED_7_PORT (&stm_gpioa)
117
117
#define LED_7_PIN 10
118
118
119
- #define AO_LED_CONTINUITY (c ) (1 << (c))
119
+ #define AO_LED_CONTINUITY (c ) ((AO_LED_TYPE) ( 1 << (c) ))
120
120
#define AO_LED_CONTINUITY_MASK (0xff)
121
121
122
122
/* ARM */
Original file line number Diff line number Diff line change 153
153
#define LED_PIN_ARMED 5
154
154
155
155
#define AO_LED_ARMED (1 << LED_PIN_ARMED)
156
- #define AO_LED_CONTINUITY (c ) (1 << (4 - (c)))
156
+ #define AO_LED_CONTINUITY (c ) ((AO_LED_TYPE) ( 1 << (4 - (c) )))
157
157
#define AO_LED_CONTINUITY_MASK (0x1 << 4)
158
158
159
159
#define LEDS_AVAILABLE (LED_PORT_0_MASK|LED_PORT_1_MASK)
Original file line number Diff line number Diff line change 141
141
#define LED_PIN_ARMED 5
142
142
143
143
#define AO_LED_ARMED (1 << LED_PIN_ARMED)
144
- #define AO_LED_CONTINUITY (c ) (1 << (4 - (c)))
144
+ #define AO_LED_CONTINUITY (c ) ((AO_LED_TYPE) ( 1 << (4 - (c) )))
145
145
#define AO_LED_CONTINUITY_MASK (0x3 << 3)
146
146
147
147
#define LEDS_AVAILABLE (LED_PORT_0_MASK|LED_PORT_1_MASK)
You can’t perform that action at this time.
0 commit comments