note: Move up_schednote.c to drivers/note folder

since it is general enough to work on other target

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-10-13 20:19:28 +08:00 committed by Alan Carvalho de Assis
parent 7b54b7502c
commit 0941bad877
4 changed files with 11 additions and 7 deletions

View File

@ -104,12 +104,6 @@ endif
HOSTSRCS += up_simsmp.c
endif
ifeq ($(CONFIG_SCHED_INSTRUMENTATION),y)
ifneq ($(CONFIG_SCHED_INSTRUMENTATION_BUFFER),y)
CSRCS += up_schednote.c
endif
endif
ifeq ($(CONFIG_ONESHOT),y)
CSRCS += up_oneshot.c
endif

View File

@ -46,6 +46,12 @@ config DRIVER_NOTEARCH
---help---
The note driver is provided by arch specific code.
config DRIVER_NOTELOG
bool "Note syslog driver"
select SCHED_INSTRUMENTATION_EXTERNAL
---help---
The note driver output to syslog.
endchoice
config DRIVER_NOTERAM_BUFSIZE

View File

@ -26,6 +26,10 @@ ifeq ($(CONFIG_DRIVER_NOTERAM),y)
CSRCS += noteram_driver.c
endif
ifeq ($(CONFIG_DRIVER_NOTELOG),y)
CSRCS += notelog_driver.c
endif
ifeq ($(CONFIG_DRIVER_NOTECTL),y)
CSRCS += notectl_driver.c
endif

View File

@ -1,5 +1,5 @@
/****************************************************************************
* arch/sim/src/sim/up_schednote.c
* drivers/note/notelog_driver.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with