mirror of
https://github.com/apache/nuttx.git
synced 2026-08-22 05:58:37 +00:00
drivers/note: add maximum channel number check
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
3591de08c6
commit
b106f032cb
1 changed files with 6 additions and 0 deletions
|
|
@ -43,6 +43,12 @@
|
|||
|
||||
#include "sched/sched.h"
|
||||
|
||||
#if defined(CONFIG_DRIVERS_NOTERAM) + defined(CONFIG_DRIVERS_NOTELOG) + \
|
||||
defined(CONFIG_DRIVERS_NOTESNAP) + defined(CONFIG_DRIVERS_NOTERTT) + \
|
||||
defined(CONFIG_SEGGER_SYSVIEW) > CONFIG_DRIVERS_NOTE_MAX
|
||||
# error "Maximum channel number exceeds. "
|
||||
#endif
|
||||
|
||||
#define note_add(drv, note, notelen) \
|
||||
((drv)->ops->add(drv, note, notelen))
|
||||
#define note_start(drv, tcb) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue