Skip to content

Commit

Permalink
samples: drivers: fpga: fpga_controller: add icev_wireless
Browse files Browse the repository at this point in the history
Add support for the `icev_wireless` board. Rather than
having a dedicated demo application in C, lets default
to the shell-based utilities.

Signed-off-by: Chris Friedt <[email protected]>
  • Loading branch information
cfriedt committed Nov 29, 2022
1 parent ba7d730 commit 6b12b64
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion samples/drivers/fpga/fpga_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(fpga_controller)

target_sources(app PRIVATE src/main.c)
target_sources_ifdef(CONFIG_BOARD_QUICKFEATHER app PRIVATE src/main.c)

target_sources_ifndef(CONFIG_BOARD_QUICKFEATHER app PRIVATE src/empty.c)
12 changes: 12 additions & 0 deletions samples/drivers/fpga/fpga_controller/boards/icev_wireless.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CONFIG_LOG=y
CONFIG_FLASH=y
CONFIG_SHELL=y
CONFIG_SPI=y
CONFIG_PINCTRL=y
CONFIG_ICE40_FPGA=y
CONFIG_FPGA_SHELL=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
CONFIG_CRC=y
CONFIG_CRC_SHELL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_EOS_S3_FPGA=y
1 change: 0 additions & 1 deletion samples/drivers/fpga/fpga_controller/prj.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
CONFIG_FPGA=y
CONFIG_EOS_S3_FPGA=y
1 change: 0 additions & 1 deletion samples/drivers/fpga/fpga_controller/prj_shell.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CONFIG_SHELL=y
CONFIG_FPGA=y
CONFIG_EOS_S3_FPGA=y
CONFIG_FPGA_SHELL=y
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
CONFIG_BOOT_BANNER=n
4 changes: 2 additions & 2 deletions samples/drivers/fpga/fpga_controller/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ common:

tests:
sample.drivers.fpga_controller:
platform_allow: quick_feather
platform_allow: quick_feather icev_wireless
sample.drivers.fpga_controller.shell:
platform_allow: quick_feather
platform_allow: quick_feather icev_wireless
extra_args: CONF_FILE="prj_shell.conf"
Empty file.

0 comments on commit 6b12b64

Please sign in to comment.