Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions multimedia/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ menu "multimedia packages"

source "$PKGS_DIR/packages/multimedia/LVGL/Kconfig"
source "$PKGS_DIR/packages/multimedia/u8g2/Kconfig"
source "$PKGS_DIR/packages/multimedia/nes_simulator/Kconfig"
source "$PKGS_DIR/packages/multimedia/openmv/Kconfig"
source "$PKGS_DIR/packages/multimedia/mupdf/Kconfig"
source "$PKGS_DIR/packages/multimedia/STemWin/Kconfig"
Expand Down
90 changes: 90 additions & 0 deletions multimedia/nes_simulator/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@

# Kconfig file for package nes
menuconfig PKG_USING_NES_SIMULATOR
bool "The nes simulator implemented in C."
default n

if PKG_USING_NES_SIMULATOR

config PKG_NES_SIMULATOR_PATH
string
default "/packages/multimedia/nes_simulator"

choice
prompt "PKG_NES_LOG_LEVEL"
default PKG_NES_LOG_LEVEL_INFO
help
Select NES LOG LEVEL

config PKG_NES_LOG_LEVEL_NONE
bool "LOG_LEVEL_NONE"

config PKG_NES_LOG_LEVEL_ERROR
bool "LOG_LEVEL_ERROR"

config PKG_NES_LOG_LEVEL_WARN
bool "LOG_LEVEL_WARN"

config PKG_NES_LOG_LEVEL_INFO
bool "LOG_LEVEL_INFO"

config PKG_NES_LOG_LEVEL_DEBUG
bool "LOG_LEVEL_DEBUG"
endchoice

choice
prompt "PKG_NES_COLOR_DEPTH"
default PKG_NES_COLOR_DEPTH_32
help
Select NES COLOR DEPTH, 16:rgb565, 32:rgb8888

config PKG_NES_COLOR_DEPTH_16
bool "COLOR_DEPTH_16"

config PKG_NES_COLOR_DEPTH_32
bool "COLOR_DEPTH_32"
endchoice

if PKG_NES_COLOR_DEPTH_16
config PKG_NES_COLOR_SWAP
bool "Enable Color Swap"
default y
endif

config PKG_NES_ENABLE_SOUND
bool "Enable Sound"
default n
help
config nes to enable sound.

config PKG_NES_USE_FS
bool "Enable File System"
default y
help
config nes to use file system to load rom files.

config PKG_NES_FRAME_SKIP
int "Frame Skip"
range 0 5
default 0

choice
prompt "Version"
default PKG_USING_NES_SIMULATOR_LATEST_VERSION
help
Select the package version

config PKG_USING_NES_SIMULATOR_V003
bool "v0.0.4"

config PKG_USING_NES_SIMULATOR_LATEST_VERSION
bool "latest"
endchoice

config PKG_NES_SIMULATOR_VER
string
default "v0.0.4" if PKG_USING_NES_SIMULATOR_V003
default "latest" if PKG_USING_NES_SIMULATOR_LATEST_VERSION

endif

35 changes: 35 additions & 0 deletions multimedia/nes_simulator/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "nes_simulator",
"description": "The nes simulator implemented in C.",
"description_zh": "C语言实现的nes模拟器。",
"enable": "PKG_USING_NES_SIMULATOR",
"keywords": [
"nes",
"simulator",
"game"
],
"category": "multimedia",
"author": {
"name": "PeakRacing",
"email": "1473454180@qq.com",
"github": "PeakRacing"
},
"license": "Apache-2.0",
"repository": "https://github.com/PeakRacing/nes",
"icon": "unknown",
"homepage": "https://github.com/PeakRacing/nes#readme",
"doc": "unknown",
"site": [
{
"version": "v0.0.4",
"URL": "https://github.com/PeakRacing/nes/archive/refs/tags/v0.0.4.zip",
"filename": "nes-0.0.4.zip"
},
{
"version": "latest",
"URL": "https://github.com/PeakRacing/nes.git",
"filename": "",
"VER_SHA": "master"
}
]
}
Loading