Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hal/api/CAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ class CAN {
EpIrq,
AlIrq,
BeIrq,
IdIrq
IdIrq,

IrqCnt
};

/** Attach a function to call whenever a CAN frame received interrupt is
Expand Down Expand Up @@ -246,7 +248,7 @@ class CAN {
virtual void lock();
virtual void unlock();
can_t _can;
Callback<void()> _irq[9];
Callback<void()> _irq[IrqCnt];
PlatformMutex _mutex;
};

Expand Down
6 changes: 4 additions & 2 deletions hal/api/SerialBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ class SerialBase {

enum IrqType {
RxIrq = 0,
TxIrq
TxIrq,

IrqCnt
};

enum Flow {
Expand Down Expand Up @@ -231,7 +233,7 @@ class SerialBase {
#endif

serial_t _serial;
Callback<void()> _irq[2];
Callback<void()> _irq[IrqCnt];
int _baud;

};
Expand Down