cmake:refine cmake build for apps/examples
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
9cf473c88c
commit
32b417a8f7
33
examples/abntcodi/CMakeLists.txt
Normal file
33
examples/abntcodi/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/adntcodi/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ABNTCODI)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_ABNTCODI_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ABNTCODI_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ABNTCODI_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ABNTCODI}
|
||||
SRCS
|
||||
abntcodi_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ADC)
|
||||
nuttx_add_application(NAME adc)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
adc
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ADC}
|
||||
SRCS
|
||||
adc_main.c)
|
||||
endif()
|
||||
|
33
examples/adjtime/CMakeLists.txt
Normal file
33
examples/adjtime/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/adjtime/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ADJTIME)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_ADJTIME_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ADJTIME_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ADJTIME_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ADJTIME}
|
||||
SRCS
|
||||
adjtime_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ADXL372_TEST)
|
||||
nuttx_add_application(NAME adxl372_test)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_ADXL372_TEST_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ADXL372_TEST_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ADXL372_TEST_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ADXL372_TEST}
|
||||
SRCS
|
||||
adxl372_test_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_AJOYSTICK)
|
||||
nuttx_add_application(NAME ajoystick)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
ajoy
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_AJOYSTICK}
|
||||
SRCS
|
||||
ajoy_main.c)
|
||||
endif()
|
||||
|
@ -21,11 +21,13 @@
|
||||
if(CONFIG_EXAMPLES_ALARM)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
alarm
|
||||
SRCS
|
||||
alarm_main.c
|
||||
${CONFIG_EXAMPLES_ALARM_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ALARM_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ALARM_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ALARM_PRIORITY})
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ALARM}
|
||||
SRCS
|
||||
alarm_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_APA102)
|
||||
nuttx_add_application(NAME apa102)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_APA102_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_APA102}
|
||||
SRCS
|
||||
apa102_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_APDS9960)
|
||||
nuttx_add_application(NAME apds9960)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_APDS9960_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_APDS9960_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_APDS9960_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_APDS9960}
|
||||
SRCS
|
||||
apds9960_main.c)
|
||||
endif()
|
||||
|
31
examples/audio_rttl/CMakeLists.txt
Normal file
31
examples/audio_rttl/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/audio_rttl/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_AUDIO_SOUND)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_AUDIO_SOUND_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_AUDIO_SOUND_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_AUDIO_SOUND_STACKSIZE}
|
||||
SRCS
|
||||
audio_rttl.c)
|
||||
endif()
|
@ -19,5 +19,24 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_BASTEST)
|
||||
nuttx_add_application(NAME bastest)
|
||||
nuttx_add_romfs(
|
||||
NAME
|
||||
bastest
|
||||
PATH
|
||||
${CMAKE_CURRENT_LIST_DIR}/test
|
||||
HEADER
|
||||
PREFIX
|
||||
bastest
|
||||
NONCONST)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
bastest
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_BASTEST}
|
||||
SRCS
|
||||
bastest_main.c)
|
||||
|
||||
endif()
|
||||
|
33
examples/battery/CMakeLists.txt
Normal file
33
examples/battery/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/battery/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_BATTERY)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_BATTERY_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_BATTERY_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_BATTERY_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_BATTERY}
|
||||
SRCS
|
||||
batt_main.c)
|
||||
endif()
|
31
examples/bmi160/CMakeLists.txt
Normal file
31
examples/bmi160/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/bmi160/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_SIXAXIS)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_SIXAXIS_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_SIXAXIS_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_SIXAXIS_STACKSIZE}
|
||||
SRCS
|
||||
sixaxis_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_BMP180)
|
||||
nuttx_add_application(NAME bmp180)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_BMP180_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_BMP180_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_BMP180_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_BMP180}
|
||||
SRCS
|
||||
bmp180_main.c)
|
||||
endif()
|
||||
|
33
examples/bmp280/CMakeLists.txt
Normal file
33
examples/bmp280/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/bmp280/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_BMP280)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_BMP280_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_BMP280_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_BMP280_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_BMP280}
|
||||
SRCS
|
||||
bmp280_main.c)
|
||||
endif()
|
@ -21,11 +21,13 @@
|
||||
if(CONFIG_EXAMPLES_BUTTONS)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
buttons
|
||||
SRCS
|
||||
buttons_main.c
|
||||
${CONFIG_EXAMPLES_BUTTONS_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_BUTTONS_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_BUTTONS_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_BUTTONS_PRIORITY})
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_BUTTONS}
|
||||
SRCS
|
||||
buttons_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CALIB_UDELAY)
|
||||
nuttx_add_application(NAME calib_udelay)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
calib_udelay
|
||||
PRIORITY
|
||||
100
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CALIB_UDELAY}
|
||||
SRCS
|
||||
calib_udelay_main.c)
|
||||
endif()
|
||||
|
39
examples/camera/CMakeLists.txt
Normal file
39
examples/camera/CMakeLists.txt
Normal file
@ -0,0 +1,39 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/camera/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CAMERA)
|
||||
|
||||
set(CSRCS camera_main.c camera_fileutil.c)
|
||||
if(CONFIG_EXAMPLES_CAMERA_OUTPUT_LCD)
|
||||
list(APPEND CSRCS camera_bkgd.c)
|
||||
endif()
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_CAMERA_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_CAMERA_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_CAMERA_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CAMERA}
|
||||
SRCS
|
||||
${CSRCS})
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CAN)
|
||||
nuttx_add_application(NAME can)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
can
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CAN}
|
||||
SRCS
|
||||
can_main.c)
|
||||
endif()
|
||||
|
31
examples/capture/CMakeLists.txt
Normal file
31
examples/capture/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/capture/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CAPTURE)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
cap
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CAPTURE}
|
||||
SRCS
|
||||
cap_main.c)
|
||||
endif()
|
33
examples/cbortest/CMakeLists.txt
Normal file
33
examples/cbortest/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/cbortest/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_TINYCBOR_TEST)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_TINYCBOR_TEST_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_TINYCBOR_TEST_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_TINYCBOR_TEST_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_TINYCBOR_TEST}
|
||||
SRCS
|
||||
cbortest_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CCTYPE)
|
||||
nuttx_add_application(NAME cctype)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
cctype
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CCTYPE}
|
||||
SRCS
|
||||
cctype_main.cxx)
|
||||
endif()
|
||||
|
31
examples/charger/CMakeLists.txt
Normal file
31
examples/charger/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/charger/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CHARGER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_CHARGER_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_CHARGER_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_CHARGER_STACKSIZE}
|
||||
SRCS
|
||||
charger_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CHAT)
|
||||
nuttx_add_application(NAME chat)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
chat
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CHAT}
|
||||
SRCS
|
||||
chat_main.c)
|
||||
endif()
|
||||
|
33
examples/chrono/CMakeLists.txt
Normal file
33
examples/chrono/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/chrono/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CHRONO)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_CHRONO_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_CHRONO_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_CHRONO_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CHRONO}
|
||||
SRCS
|
||||
chrono_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CONFIGDATA)
|
||||
nuttx_add_application(NAME configdata)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
configdata
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CONFIGDATA}
|
||||
SRCS
|
||||
configdata_main.c)
|
||||
endif()
|
||||
|
33
examples/cordic/CMakeLists.txt
Normal file
33
examples/cordic/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/cordic/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CORDIC)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_CORDIC_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_CORDIC_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_CORDIC_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CORDIC}
|
||||
SRCS
|
||||
cordic_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CPUHOG)
|
||||
nuttx_add_application(NAME cpuhog)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
cpuhog
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_CPUHOG_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_CPUHOG_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_CPUHOG}
|
||||
SRCS
|
||||
cpuhog_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,5 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_CROMFS)
|
||||
nuttx_add_application(NAME cromfs)
|
||||
nuttx_add_cromfs(NAME example_cromfs PATH ${CMAKE_CURRENT_LIST_DIR}/cromfs)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_DAC)
|
||||
nuttx_add_application(NAME dac)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
dac
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_DAC}
|
||||
SRCS
|
||||
dac_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_DHTXX)
|
||||
nuttx_add_application(NAME dhtxx)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_DHTXX_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_DHTXX_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_DHTXX_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_DHTXX}
|
||||
SRCS
|
||||
dhtxx_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_DISCOVER)
|
||||
nuttx_add_application(NAME discover SRCS discover_main.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
discover
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_DISCOVER}
|
||||
SRCS
|
||||
discover_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_DJOYSTICK)
|
||||
nuttx_add_application(NAME djoystick)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
djoy
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_DJOYSTICK}
|
||||
SRCS
|
||||
djoy_main.c)
|
||||
endif()
|
||||
|
41
examples/dronecan/CMakeLists.txt
Normal file
41
examples/dronecan/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/dronecan/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_DRONECAN)
|
||||
set(INCDIR ${NUTTX_APPS_DIR}/canutils/libdronecan/libcanard
|
||||
${NUTTX_APPS_DIR}/canutils/libdronecan/libcanard/drivers/nuttx)
|
||||
if(CONFIG_CANUTILS_LIBOPENCYPHAL)
|
||||
set(CFLAGS -DcanardInit=dronecanardInit)
|
||||
endif()
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
dronecan
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_DRONECAN_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_DRONECAN}
|
||||
SRCS
|
||||
canard_main.c
|
||||
INCLUDE_DIRECTORIES
|
||||
${INCDIR}
|
||||
COMPILE_FLAGS
|
||||
${CFLAGS})
|
||||
endif()
|
33
examples/embedlog/CMakeLists.txt
Normal file
33
examples/embedlog/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/embedlog/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_EMBEDLOG)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_EMBEDLOG_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_EMBEDLOG_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_EMBEDLOG_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_EMBEDLOG}
|
||||
SRCS
|
||||
embedlog_main.c)
|
||||
endif()
|
33
examples/esp32_himem/CMakeLists.txt
Normal file
33
examples/esp32_himem/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/esp32_himem/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ESP32_HIMEM)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_ESP32_HIMEM_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ESP32_HIMEM_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ESP32_HIMEM_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ESP32_HIMEM}
|
||||
SRCS
|
||||
esp32_himem_main.c)
|
||||
endif()
|
31
examples/etl/CMakeLists.txt
Normal file
31
examples/etl/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/etl/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ETL)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
etl
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HELLOXX}
|
||||
SRCS
|
||||
etl_main.cxx)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FBOVERLAY)
|
||||
nuttx_add_application(NAME fboverlay)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_FBOVERLAY_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_FBOVERLAY_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FBOVERLAY_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_FBOVERLAY}
|
||||
SRCS
|
||||
fboverlay_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FLASH_TEST)
|
||||
nuttx_add_application(NAME flash_test)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
flash_test
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_FLASH_TEST}
|
||||
SRCS
|
||||
flash_test.c)
|
||||
endif()
|
||||
|
43
examples/fmsynth/CMakeLists.txt
Normal file
43
examples/fmsynth/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/fmsynth/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FMSYNTH)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_FMSYNTH_KEYBOARD_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_FMSYNTH_KEYBOARD_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FMSYNTH_KEYBOARD_STACKSIZE}
|
||||
SRCS
|
||||
keyboard_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_FMSYNTH_MMLPLAYER_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_FMSYNTH_MMLPLAYER_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FMSYNTH_MMLPLAYER_STACKSIZE}
|
||||
SRCS
|
||||
mmlplayer_main.c)
|
||||
|
||||
target_sources(apps PRIVATE music_scale.c operator_algorithm.c)
|
||||
endif()
|
@ -19,5 +19,24 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FT80X)
|
||||
nuttx_add_application(NAME ft80x)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_FT80X_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_FT80X_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FT80X_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_FT80X}
|
||||
SRCS
|
||||
ft80x_main.c)
|
||||
|
||||
set(CSRCS ft80x_coprocessor.c)
|
||||
if(CONFIG_EXAMPLES_FT80X_PRIMITIVES)
|
||||
list(APPEND CSRCS ft80x_primitives.c)
|
||||
endif()
|
||||
if(CONFIG_EXAMPLES_FT80X_EXCLUDE_BITMAPS)
|
||||
list(APPEND CSRCS ft80x_bitmaps.c)
|
||||
endif()
|
||||
target_sources(apps PRIVATE ${CSRCS})
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FTPC)
|
||||
nuttx_add_application(NAME ftpc)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
ftpc
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FTPC_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_FTPC}
|
||||
SRCS
|
||||
ftpc_main.c)
|
||||
|
||||
target_sources(apps PRIVATE ftpc_cmds.c)
|
||||
endif()
|
||||
|
31
examples/fxos8700cq_test/CMakeLists.txt
Normal file
31
examples/fxos8700cq_test/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/fxos8700cq_test/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_FXOS8700CQ)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_FXOS8700CQ_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_FXOS8700CQ_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_FXOS8700CQ_STACKSIZE}
|
||||
SRCS
|
||||
fxos8700cq_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_GPIO)
|
||||
nuttx_add_application(NAME gpio)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_GPIO_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_GPIO_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_GPIO_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_GPIO}
|
||||
SRCS
|
||||
gpio_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,17 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_GPS)
|
||||
nuttx_add_application(NAME gps)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_GPS_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_GPS_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_GPS_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_GPS}
|
||||
SRCS
|
||||
gps_main.c
|
||||
INCLUDE_DIRECTORIES
|
||||
${NUTTX_APPS_DIR}/gpsutils/minmea)
|
||||
endif()
|
||||
|
31
examples/hall/CMakeLists.txt
Normal file
31
examples/hall/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/hall/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_HALL)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
hall
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HALL}
|
||||
SRCS
|
||||
hall_main.c)
|
||||
endif()
|
31
examples/hdc1008_demo/CMakeLists.txt
Normal file
31
examples/hdc1008_demo/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/hdc1008/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_HDC1008)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
hdc1008
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HDC1008}
|
||||
SRCS
|
||||
hdc1008_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_HELLOXX)
|
||||
nuttx_add_application(NAME helloxx SRCS helloxx_main.cxx)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
helloxx
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HELLOXX}
|
||||
SRCS
|
||||
helloxx_main.cxx)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_HIDKBD)
|
||||
nuttx_add_application(NAME hidkbd)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_HIDKBD_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_HIDKBD_DEFPRIO}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_HIDKBD_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HIDKBD}
|
||||
SRCS
|
||||
hidkbd_main.c)
|
||||
endif()
|
||||
|
31
examples/hts221_reader/CMakeLists.txt
Normal file
31
examples/hts221_reader/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/hts221_reader/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_HTS221_READER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
hts221_reader
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_HTS221_READER}
|
||||
SRCS
|
||||
hts221_reader_main.c)
|
||||
endif()
|
@ -19,5 +19,19 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_I2SCHAR)
|
||||
nuttx_add_application(NAME i2schar)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
i2schar
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_I2SCHAR}
|
||||
SRCS
|
||||
i2schar_main.c)
|
||||
if(CONFIG_EXAMPLES_I2SCHAR_TX)
|
||||
target_sources(apps PRIVATE i2schar_transmitter.c)
|
||||
endif()
|
||||
if(CONFIG_EXAMPLES_I2SCHAR_RX)
|
||||
target_sources(apps PRIVATE i2schar_receiver.c)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_I2SLOOP)
|
||||
nuttx_add_application(NAME i2sloop)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
i2sloop
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_I2SLOOP}
|
||||
SRCS
|
||||
i2sloop_main.c)
|
||||
endif()
|
||||
|
@ -19,6 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_IGMP)
|
||||
nuttx_add_application(NAME igmp SRCS igmp.c STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE})
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
igmp
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_IGMP}
|
||||
SRCS
|
||||
igmp.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_INA219)
|
||||
nuttx_add_application(NAME ina219)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_INA219_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_INA219_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_INA219_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_INA219}
|
||||
SRCS
|
||||
ina219_main.c)
|
||||
endif()
|
||||
|
35
examples/ini_dumper/CMakeLists.txt
Normal file
35
examples/ini_dumper/CMakeLists.txt
Normal file
@ -0,0 +1,35 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/ini_dumper/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_INI_DUMPER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_INI_DUMPER_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_INI_DUMPER_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_INI_DUMPER_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_INI_DUMPER}
|
||||
SRCS
|
||||
ini_dumper_main.c
|
||||
COMPILE_FLAGS
|
||||
-DINI_HANDLER_LINENO=1)
|
||||
endif()
|
33
examples/ipcfg/CMakeLists.txt
Normal file
33
examples/ipcfg/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/ipcfg/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_IPCFG)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_IPCFG_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_IPCFG_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_IPCFG_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_IPCFG}
|
||||
SRCS
|
||||
ipcfg_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_IPFORWARD)
|
||||
nuttx_add_application(NAME ipforward)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_IPFORWARD_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_IPFORWARD_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_IPFORWARD_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_IPFORWARD}
|
||||
SRCS
|
||||
ipforward.c)
|
||||
endif()
|
||||
|
31
examples/isl29023/CMakeLists.txt
Normal file
31
examples/isl29023/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/isl29023/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ISL29023)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
isl29023
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ISL29023}
|
||||
SRCS
|
||||
isl29023_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_JSON)
|
||||
nuttx_add_application(NAME json)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
json
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_JSON}
|
||||
SRCS
|
||||
json_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LEDS)
|
||||
nuttx_add_application(NAME leds)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LEDS_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LEDS_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LEDS_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LEDS}
|
||||
SRCS
|
||||
leds_main.c)
|
||||
endif()
|
||||
|
40
examples/libtest/CMakeLists.txt
Normal file
40
examples/libtest/CMakeLists.txt
Normal file
@ -0,0 +1,40 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/libtest/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LIBTEST)
|
||||
|
||||
if(CONFIG_EXAMPLES_LIBTEST_CMDTOOL)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LIBTEST_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LIBTEST_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LIBTEST_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LIBTEST_CMDTOOL}
|
||||
SRCS
|
||||
libtest_main.c)
|
||||
endif()
|
||||
|
||||
nuttx_add_library(libtest STATIC)
|
||||
target_sources(libtest libtest.c)
|
||||
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LIS3DSH_READER)
|
||||
nuttx_add_application(NAME lis3dsh_reader)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LIS3DSH_READER_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LIS3DSH_READER}
|
||||
SRCS
|
||||
lis3dsh_reader_main.c)
|
||||
endif()
|
||||
|
33
examples/lp503x/CMakeLists.txt
Normal file
33
examples/lp503x/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/lp503x/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LP503X)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LP503X_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LP503X_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LP503X_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LP503X}
|
||||
SRCS
|
||||
lp503x_main.c)
|
||||
endif()
|
31
examples/lsm303_reader/CMakeLists.txt
Normal file
31
examples/lsm303_reader/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/lsm303_reader/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LSM303_READER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
lsm303_reader
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LSM303_READER}
|
||||
SRCS
|
||||
lsm303_reader_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LSM330SPI_TEST)
|
||||
nuttx_add_application(NAME lsm330spi_test)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LSM330SPI_TEST_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LSM330SPI_TEST_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LSM330SPI_TEST_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LSM330SPI_TEST}
|
||||
SRCS
|
||||
lsm330spi_test_main.c)
|
||||
endif()
|
||||
|
31
examples/lsm6dsl_reader/CMakeLists.txt
Normal file
31
examples/lsm6dsl_reader/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/lsm6dsl_reader/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LSM6DSL_READER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
lsm6dsl_reader
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LSM6DSL_READER}
|
||||
SRCS
|
||||
lsm6dsl_reader_main.c)
|
||||
endif()
|
33
examples/ltr308/CMakeLists.txt
Normal file
33
examples/ltr308/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/ltr308/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LTR308)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_LTR308_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LTR308_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LTR308_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LTR308}
|
||||
SRCS
|
||||
ltr308_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LVGLDEMO)
|
||||
nuttx_add_application(NAME lvgldemo)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
lvgldemo
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LVGLDEMO_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LVGLDEMO_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LVGLDEMO}
|
||||
SRCS
|
||||
lvgldemo.c)
|
||||
endif()
|
||||
|
33
examples/lvglterm/CMakeLists.txt
Normal file
33
examples/lvglterm/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/lvglterm/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LVGLTERM)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
lvglterm
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_LVGLTERM_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LVGLTERM_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LVGLTERM}
|
||||
SRCS
|
||||
lvglterm.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MAX31855)
|
||||
nuttx_add_application(NAME max31855)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MAX31855_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_MAX31855_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_MAX31855_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MAX31855}
|
||||
SRCS
|
||||
max31855_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MEDIA)
|
||||
nuttx_add_application(NAME media)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MEDIA_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MEDIA}
|
||||
SRCS
|
||||
media_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MLD)
|
||||
nuttx_add_application(NAME mld)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MLD_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_MLD_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_MLD_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MLD}
|
||||
SRCS
|
||||
mld_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MLX90614)
|
||||
nuttx_add_application(NAME mlx90614)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MLX90614_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MLX90614}
|
||||
SRCS
|
||||
mlx90614_main.c)
|
||||
endif()
|
||||
|
31
examples/mml_parser/CMakeLists.txt
Normal file
31
examples/mml_parser/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/mml_parser/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MMLPARSER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
mmlparser
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MMLPARSER}
|
||||
SRCS
|
||||
mml_parser_main.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MODBUS)
|
||||
nuttx_add_application(NAME modbus)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
modbus
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MODBUS}
|
||||
SRCS
|
||||
modbus_main.c)
|
||||
endif()
|
||||
|
33
examples/modbusmaster/CMakeLists.txt
Normal file
33
examples/modbusmaster/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/modbusmaster/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MODBUSMASTER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MODBUSMASTER_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_MODBUSMASTER_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_MODBUSMASTER_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MODBUSMASTER}
|
||||
SRCS
|
||||
mbmaster_main.c)
|
||||
endif()
|
31
examples/mqttc/CMakeLists.txt
Normal file
31
examples/mqttc/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/mqttc/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MQTTC)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MQTTC_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_MQTTC_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MQTTC}
|
||||
SRCS
|
||||
mqttc_pub.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MTDPART)
|
||||
nuttx_add_application(NAME mtdpart SRCS mtdpart_main.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
mtdpart
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MTDPART}
|
||||
SRCS
|
||||
mtdpart_main.c)
|
||||
endif()
|
||||
|
@ -19,6 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MTDRWB)
|
||||
nuttx_add_application(NAME ${CONFIG_EXAMPLES_MTDRWB_PROGNAME} SRCS
|
||||
mtdrwb_main.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_MTDRWB_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_MTDRWB}
|
||||
SRCS
|
||||
mtdrwb_main.c)
|
||||
endif()
|
||||
|
33
examples/netlink_route/CMakeLists.txt
Normal file
33
examples/netlink_route/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/netlink_route/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NETLINK_ROUTE)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NETLINK_ROUTE_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NETLINK_ROUTE_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NETLINK_ROUTE_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NETLINK_ROUTE}
|
||||
SRCS
|
||||
netlink_route_main.c)
|
||||
endif()
|
@ -19,5 +19,16 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NETLOOP)
|
||||
nuttx_add_application(NAME netloop)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
netloop
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NETLOOP_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NETLOOP_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NETLOOP}
|
||||
SRCS
|
||||
lo_main.c)
|
||||
target_sources(apps PRIVATE lo_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NETPKT)
|
||||
nuttx_add_application(NAME netpkt)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
netpkt
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NETPKT}
|
||||
SRCS
|
||||
netpkt_main.c)
|
||||
endif()
|
||||
|
33
examples/nng_test/CMakeLists.txt
Normal file
33
examples/nng_test/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/nng_test/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NNG_TEST)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
pubsub
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NNG_TEST_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NNG_TEST_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NNG_TEST}
|
||||
SRCS
|
||||
pubsub.c)
|
||||
endif()
|
33
examples/noteprintf/CMakeLists.txt
Normal file
33
examples/noteprintf/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/noteprintf/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NOTEPRINTF)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NOTEPRINTF_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NOTEPRINTF_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NOTEPRINTF_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NOTEPRINTF}
|
||||
SRCS
|
||||
noteprintf_main.c)
|
||||
endif()
|
33
examples/nrf24l01_btle/CMakeLists.txt
Normal file
33
examples/nrf24l01_btle/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/nrf24l01_btle/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NRF24L01_BTLE)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NRF24L01_BTLE_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NRF24L01_BTLE_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NRF24L01_BTLE_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NRF24L01_BTLE}
|
||||
SRCS
|
||||
nrf24l01_btle.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NRF24L01TERM)
|
||||
nuttx_add_application(NAME nrf24l01_term)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
nrf24l01_term
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NRF24L01TERM}
|
||||
SRCS
|
||||
nrf24l01_term.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NULL)
|
||||
nuttx_add_application(NAME null)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
null
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NULL}
|
||||
SRCS
|
||||
null_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NUNCHUCK)
|
||||
nuttx_add_application(NAME nunchuck)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
nunchuck
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NUNCHUCK}
|
||||
SRCS
|
||||
nunchuck_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,14 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NX)
|
||||
nuttx_add_application(NAME nx)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
nx
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NX}
|
||||
SRCS
|
||||
nx_main.c)
|
||||
target_sources(apps PRIVATE nx_events.c nx_kbdin.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,14 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXDEMO)
|
||||
nuttx_add_application(NAME nxdemo)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
nxdemo
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXDEMO}
|
||||
SRCS
|
||||
nxdemo_main.c)
|
||||
target_sources(apps PRIVATE nxdemo_bkgd.c nxdemo_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,16 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXHELLO)
|
||||
nuttx_add_application(NAME nxhello)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NXHELLO_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NXHELLO_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NXHELLO_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXHELLO}
|
||||
SRCS
|
||||
nxhello_main.c)
|
||||
target_sources(apps PRIVATE nxhello_bkgd.c nxhello_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,17 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXIMAGE)
|
||||
nuttx_add_application(NAME nximage)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NXIMAGE_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NXIMAGE_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NXIMAGE_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXIMAGE}
|
||||
SRCS
|
||||
nximage_main.c)
|
||||
target_sources(apps PRIVATE nximage_bkgd.c nximage_bitmap.c
|
||||
nximage_listener.c)
|
||||
endif()
|
||||
|
@ -19,6 +19,16 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXLINES)
|
||||
nuttx_add_application(NAME nxlines SRCS nxlines_bkgd.c nxlines_listener.c
|
||||
nxlines_main.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NXLINES_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NXLINES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NXLINES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXLINES}
|
||||
SRCS
|
||||
nxlines_main.c)
|
||||
target_sources(apps PRIVATE nxlines_bkgd.c nxlines_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,16 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXTERM)
|
||||
nuttx_add_application(NAME nxterm)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_NXTERM_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_NXTERM_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_NXTERM_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXTERM}
|
||||
SRCS
|
||||
nxterm_main.c)
|
||||
target_sources(apps PRIVATE nxterm_toolbar.c nxterm_wndo.c nxterm_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_NXTEXT)
|
||||
nuttx_add_application(NAME nxtext)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
nxtext
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_NXTEXT}
|
||||
SRCS
|
||||
nxtext_main.c)
|
||||
target_sources(apps PRIVATE nxtext_bkgd.c nxtext_popup.c nxtext_putc.c
|
||||
nxtext_listener.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_OBD2)
|
||||
nuttx_add_application(NAME obd2)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
obd2
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_OBD2}
|
||||
SRCS
|
||||
obd2_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_ONESHOT)
|
||||
nuttx_add_application(NAME oneshot)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_ONESHOT_PROGNAME}
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_ONESHOT_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_ONESHOT_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_ONESHOT}
|
||||
SRCS
|
||||
oneshot_main.c)
|
||||
endif()
|
||||
|
38
examples/opencyphal/CMakeLists.txt
Normal file
38
examples/opencyphal/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
# ##############################################################################
|
||||
# apps/examples/opencyphal/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_LIBOPENCYPHAL)
|
||||
set(INCDIR ${NUTTX_APPS_DIR}/canutils/libopencyphal/libcanard/libcanard)
|
||||
set(CFLAGS -std=c11)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
opencyphal
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_LIBOPENCYPHAL_DAEMON_STACK_SIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_LIBOPENCYPHAL}
|
||||
SRCS
|
||||
canard_main.c
|
||||
INCLUDE_DIRECTORIES
|
||||
${INCDIR}
|
||||
COMPILE_FLAGS
|
||||
${CFLAGS})
|
||||
target_sources(apps PRIVATE socketcan.c)
|
||||
endif()
|
@ -19,5 +19,13 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_PCA9635)
|
||||
nuttx_add_application(NAME pca9635)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_EXAMPLES_PCA9635_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PCA9635}
|
||||
SRCS
|
||||
pca9635_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,112 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_PDCURSES)
|
||||
nuttx_add_application(NAME pdcurses)
|
||||
target_sources(apps PRIVATE tui.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
charset
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
charset_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
firework
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
firework_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
newdemo
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
newdemo_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
panel
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
panel_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
rain
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
rain_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
testcurs
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
testcurs_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
tui
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
tui_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
worm
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
worm_main.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
xmas
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PDCURSES_PRIORITY}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PDCURSES_STACKSIZE}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PDCURSES}
|
||||
SRCS
|
||||
xmas_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,28 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_PFIEEE802154)
|
||||
nuttx_add_application(NAME pf_ieee802154)
|
||||
target_sources(apps PRIVATE pf_cmdline.c)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
pfserver
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PFIEEE802154_PRIORITY1}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PFIEEE802154_STACKSIZE1}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PFIEEE802154}
|
||||
SRCS
|
||||
pf_server.c)
|
||||
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
pfclient
|
||||
PRIORITY
|
||||
${CONFIG_EXAMPLES_PFIEEE802154_PRIORITY1}
|
||||
STACKSIZE
|
||||
${CONFIG_EXAMPLES_PFIEEE802154_STACKSIZE1}
|
||||
MODULE
|
||||
${CONFIG_EXAMPLES_PFIEEE802154}
|
||||
SRCS
|
||||
pf_client.c)
|
||||
endif()
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user