Skip to content

Commit

Permalink
samples: boards: npcm400_evb: add spip flash test
Browse files Browse the repository at this point in the history
add spip flash test.

clone from mec172xevb_assy6906-qmspi_ldma

Signed-off-by: James Chiang <[email protected]>
  • Loading branch information
James Chiang committed Sep 4, 2024
1 parent 7d00739 commit e66e311
Show file tree
Hide file tree
Showing 4 changed files with 650 additions and 0 deletions.
11 changes: 11 additions & 0 deletions samples/boards/npcm400_evb/spip_flash/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2024 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0
#
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(npcm400_evb)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
3 changes: 3 additions & 0 deletions samples/boards/npcm400_evb/spip_flash/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable config log
CONFIG_SPI=y
CONFIG_SPI_EXTENDED_MODES=y
11 changes: 11 additions & 0 deletions samples/boards/npcm400_evb/spip_flash/sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sample:
description: npcm400_evb SPIP flash testing
name: npcm400_evb spip flash test
tests:
sample.board.npcm400_evb.spip_flash:
harness: spi
platform_allow: npcm400_evb
tags: spi
depends_on:
- spi
- gpio
Loading

0 comments on commit e66e311

Please sign in to comment.