Skip to content

Commit 437f462

Browse files
committed
sample
1 parent fa44ab3 commit 437f462

File tree

20 files changed

+221
-53
lines changed

20 files changed

+221
-53
lines changed

samples/modules/arduino_core/analog_input/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
# get value of NORMALIZED_BOARD_TARGET early
6-
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS yaml boards)
7-
8-
set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/../../variants/${NORMALIZED_BOARD_TARGET}/${NORMALIZED_BOARD_TARGET}.overlay)
9-
105
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
116
project(analog_input)
127

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sample:
2+
name: Arduino Analog Input sample
3+
4+
common:
5+
tags:
6+
- arduino_core
7+
required_snippets:
8+
- arduino_core
9+
integration_platforms:
10+
- arduino_mkrzero/samd21g18a
11+
- arduino_nano_33_ble/nrf52840
12+
- arduino_nano_33_ble/nrf52840/sense
13+
- arduino_nano_33_iot/samd21g18a
14+
- beagleconnect_freedom/cc1352p7
15+
- cc3220sf_launchxl/cc3220sf
16+
- nrf52840dk/nrf52840
17+
- nrf9160dk/nrf9160
18+
- rpi_pico/rp2040
19+
20+
tests:
21+
sample.arduino_core.analog_impot.build:
22+
build_only: true

samples/modules/arduino_core/attach_interrupt/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
# get value of NORMALIZED_BOARD_TARGET early
6-
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS yaml boards)
7-
8-
set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/../../variants/${NORMALIZED_BOARD_TARGET}/${NORMALIZED_BOARD_TARGET}.overlay)
9-
105
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
116
project(attach_interrupt)
127

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sample:
2+
name: Attach Interrupt sample
3+
4+
common:
5+
tags:
6+
- arduino_core
7+
required_snippets:
8+
- arduino_core
9+
integration_platforms:
10+
- arduino_mkrzero/samd21g18a
11+
- arduino_nano_33_ble/nrf52840
12+
- arduino_nano_33_ble/nrf52840/sense
13+
- arduino_nano_33_iot/samd21g18a
14+
- beagleconnect_freedom/cc1352p7
15+
- cc3220sf_launchxl/cc3220sf
16+
- nrf52840dk/nrf52840
17+
- nrf9160dk/nrf9160
18+
- rpi_pico/rp2040
19+
20+
tests:
21+
sample.arduino_core.attach_interrupt.build:
22+
build_only: true

samples/modules/arduino_core/blinky_arduino/CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
# get value of NORMALIZED_BOARD_TARGET early
6-
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS yaml boards)
7-
8-
set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/../../variants/${NORMALIZED_BOARD_TARGET}/${NORMALIZED_BOARD_TARGET}.overlay)
9-
105
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
11-
project(blinky)
6+
project(blinky_arduino)
127

138
target_sources(app PRIVATE src/main.cpp)
14-
15-
zephyr_compile_options(-Wno-unused-variable -Wno-comment)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sample:
2+
name: Arduino blinky sample
3+
4+
common:
5+
tags:
6+
- arduino_core
7+
required_snippets:
8+
- arduino_core
9+
integration_platforms:
10+
- arduino_mkrzero/samd21g18a
11+
- arduino_nano_33_ble/nrf52840
12+
- arduino_nano_33_ble/nrf52840/sense
13+
- arduino_nano_33_iot/samd21g18a
14+
- beagleconnect_freedom/cc1352p7
15+
- cc3220sf_launchxl/cc3220sf
16+
- nrf52840dk/nrf52840
17+
- nrf9160dk/nrf9160
18+
- rpi_pico/rp2040
19+
20+
tests:
21+
sample.arduino_core.blinky_arduino.build:
22+
build_only: true

samples/modules/arduino_core/button_press_led/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
# get value of NORMALIZED_BOARD_TARGET early
6-
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS yaml boards)
7-
8-
set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/../../variants/${NORMALIZED_BOARD_TARGET}/${NORMALIZED_BOARD_TARGET}.overlay)
9-
105
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
116
project(button_press_led)
127

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sample:
2+
name: Button press LED sample
3+
4+
common:
5+
tags:
6+
- arduino_core
7+
required_snippets:
8+
- arduino_core
9+
integration_platforms:
10+
- arduino_mkrzero/samd21g18a
11+
- arduino_nano_33_ble/nrf52840
12+
- arduino_nano_33_ble/nrf52840/sense
13+
- arduino_nano_33_iot/samd21g18a
14+
- beagleconnect_freedom/cc1352p7
15+
- cc3220sf_launchxl/cc3220sf
16+
- nrf52840dk/nrf52840
17+
- nrf9160dk/nrf9160
18+
- rpi_pico/rp2040
19+
20+
tests:
21+
sample.arduino_core.button_press_led.build:
22+
build_only: true

samples/modules/arduino_core/fade/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
# get value of NORMALIZED_BOARD_TARGET early
6-
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS yaml boards)
7-
8-
set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/../../variants/${NORMALIZED_BOARD_TARGET}/${NORMALIZED_BOARD_TARGET}.overlay)
9-
105
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
116
project(fade)
127

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sample:
2+
name: fade sample
3+
4+
common:
5+
tags:
6+
- arduino_core
7+
required_snippets:
8+
- arduino_core
9+
integration_platforms:
10+
- arduino_mkrzero/samd21g18a
11+
- arduino_nano_33_ble/nrf52840
12+
- arduino_nano_33_ble/nrf52840/sense
13+
- arduino_nano_33_iot/samd21g18a
14+
- beagleconnect_freedom/cc1352p7
15+
- cc3220sf_launchxl/cc3220sf
16+
- nrf52840dk/nrf52840
17+
- nrf9160dk/nrf9160
18+
- rpi_pico/rp2040
19+
20+
tests:
21+
sample.arduino_core.fade.build:
22+
build_only: true

0 commit comments

Comments
 (0)