File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,9 @@ class CAN {
203
203
EpIrq,
204
204
AlIrq,
205
205
BeIrq,
206
- IdIrq
206
+ IdIrq,
207
+
208
+ IrqCnt
207
209
};
208
210
209
211
/* * Attach a function to call whenever a CAN frame received interrupt is
@@ -246,7 +248,7 @@ class CAN {
246
248
virtual void lock ();
247
249
virtual void unlock ();
248
250
can_t _can;
249
- Callback<void ()> _irq[9 ];
251
+ Callback<void ()> _irq[IrqCnt ];
250
252
PlatformMutex _mutex;
251
253
};
252
254
Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ class SerialBase {
55
55
56
56
enum IrqType {
57
57
RxIrq = 0 ,
58
- TxIrq
58
+ TxIrq,
59
+
60
+ IrqCnt
59
61
};
60
62
61
63
enum Flow {
@@ -231,7 +233,7 @@ class SerialBase {
231
233
#endif
232
234
233
235
serial_t _serial;
234
- Callback<void ()> _irq[2 ];
236
+ Callback<void ()> _irq[IrqCnt ];
235
237
int _baud;
236
238
237
239
};
You can’t perform that action at this time.
0 commit comments