ctr: Add support for multiple integers in DECL_CTR_INT

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-08-22 12:12:21 -04:00
parent 1b83fb72f5
commit 84fd89b8cf
3 changed files with 24 additions and 20 deletions

View File

@@ -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 { \