Skip to content

Commit f35377b

Browse files
committed
Add mchan check for both event- and poll-based event checking flags being set
1 parent 072f62d commit f35377b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

TargetLibraries/PULPOpen/inc/mchan_v6.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#error "[mchan_v6.h] Nor MCHAN_EVENT nor MCHAN_POLLED defined!"
3838
#endif
3939

40+
#if defined(MCHAN_EVENT) && defined(MCHAN_POLLED)
41+
#error "[mchan_v6.h] Define either MCHAN_EVENT or MCHAN_POLLED, not both!"
42+
#endif
43+
4044
#if defined(MCHAN_EVENT) && !defined(MCHAN_EVENT_BIT)
4145
#error \
4246
"[mchan_v6.h] MCHAN_EVENT_BIT should be defined when using events as signalization!"

TargetLibraries/PULPOpen/inc/mchan_v7.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#error "[mchan_v7.h] Nor MCHAN_EVENT nor MCHAN_POLLED defined!"
3838
#endif
3939

40+
#if defined(MCHAN_EVENT) && defined(MCHAN_POLLED)
41+
#error "[mchan_v7.h] Define either MCHAN_EVENT or MCHAN_POLLED, not both!"
42+
#endif
43+
4044
#if defined(MCHAN_EVENT) && !defined(MCHAN_EVENT_BIT)
4145
#error \
4246
"[mchan_v7.h] MCHAN_EVENT_BIT should be defined when using events as signalization!"

0 commit comments

Comments
 (0)