forked from xuos/xiuos
APP_Framework/Applications/:add configuration file about CMSIS-NN (version 5) cifar10 example
This commit is contained in:
parent
86cb28ee4f
commit
96ca3b18f1
|
@ -11,6 +11,7 @@ menu "knowing app"
|
||||||
source "$APP_DIR/Applications/knowing_app/iris_ml_demo/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/iris_ml_demo/Kconfig"
|
||||||
source "$APP_DIR/Applications/knowing_app/k210_fft_test/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/k210_fft_test/Kconfig"
|
||||||
source "$APP_DIR/Applications/knowing_app/image_processing/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/image_processing/Kconfig"
|
||||||
|
source "$APP_DIR/Applications/knowing_app/cmsis_5_demo/Kconfig"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
menuconfig USING_CMSIS_5_DEMOAPP
|
||||||
|
bool "CMSIS-5 demo app"
|
||||||
|
depends on USING_USING_CMSIS_5_NN
|
||||||
|
default n
|
||||||
|
|
||||||
|
if USING_CMSIS_5_DEMOAPP
|
||||||
|
|
||||||
|
config USING_CMSIS_5_NN_DEMOAPP
|
||||||
|
bool "Using CMSIS-5 NN demo app"
|
||||||
|
select USING_IMAGE_PROCESSING
|
||||||
|
select IMAGE_PROCESSING_USING_TJPGD
|
||||||
|
default n
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
objs = []
|
||||||
|
list = os.listdir(cwd)
|
||||||
|
|
||||||
|
for d in list:
|
||||||
|
path = os.path.join(cwd, d)
|
||||||
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||||
|
objs = objs + SConscript(os.path.join(path, 'SConscript'))
|
||||||
|
|
||||||
|
Return('objs')
|
|
@ -0,0 +1,18 @@
|
||||||
|
from building import *
|
||||||
|
import os
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
|
||||||
|
src = Split('''
|
||||||
|
model/m4/nn.c
|
||||||
|
demo/cmsisnn_demo.c
|
||||||
|
''')
|
||||||
|
|
||||||
|
path = [
|
||||||
|
cwd + '/model/m4',
|
||||||
|
cwd + '/demo'
|
||||||
|
]
|
||||||
|
|
||||||
|
group = DefineGroup('CMSISNN-cifar10', src, depend = ['USING_CMSIS_5_DEMOAPP'], CPPPATH = path)
|
||||||
|
|
||||||
|
Return('group')
|
Loading…
Reference in New Issue