ctr: Add support for multiple integers in DECL_CTR_INT
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#include "ctr.h" // DECL_CTR_INT
|
||||
|
||||
// Declare an IRQ handler
|
||||
#define DECL_ARMCM_IRQ(FUNC, NUM) \
|
||||
DECL_CTR_INT("DECL_ARMCM_IRQ " __stringify(FUNC), (NUM))
|
||||
#define DECL_ARMCM_IRQ(FUNC, NUM) \
|
||||
DECL_CTR_INT("DECL_ARMCM_IRQ " __stringify(FUNC), 1, CTR_INT(NUM))
|
||||
|
||||
// Statically declare an IRQ handler and run-time enable it
|
||||
#define armcm_enable_irq(FUNC, NUM, PRIORITY) do { \
|
||||
|
||||
Reference in New Issue
Block a user