Skip to content

Commit ff53a5e

Browse files
authored
multimedia:add nes simulator (#1952)
1 parent 6f645ec commit ff53a5e

3 files changed

Lines changed: 126 additions & 0 deletions

File tree

multimedia/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ menu "multimedia packages"
22

33
source "$PKGS_DIR/packages/multimedia/LVGL/Kconfig"
44
source "$PKGS_DIR/packages/multimedia/u8g2/Kconfig"
5+
source "$PKGS_DIR/packages/multimedia/nes_simulator/Kconfig"
56
source "$PKGS_DIR/packages/multimedia/openmv/Kconfig"
67
source "$PKGS_DIR/packages/multimedia/mupdf/Kconfig"
78
source "$PKGS_DIR/packages/multimedia/STemWin/Kconfig"

multimedia/nes_simulator/Kconfig

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
2+
# Kconfig file for package nes
3+
menuconfig PKG_USING_NES_SIMULATOR
4+
bool "The nes simulator implemented in C."
5+
default n
6+
7+
if PKG_USING_NES_SIMULATOR
8+
9+
config PKG_NES_SIMULATOR_PATH
10+
string
11+
default "/packages/multimedia/nes_simulator"
12+
13+
choice
14+
prompt "PKG_NES_LOG_LEVEL"
15+
default PKG_NES_LOG_LEVEL_INFO
16+
help
17+
Select NES LOG LEVEL
18+
19+
config PKG_NES_LOG_LEVEL_NONE
20+
bool "LOG_LEVEL_NONE"
21+
22+
config PKG_NES_LOG_LEVEL_ERROR
23+
bool "LOG_LEVEL_ERROR"
24+
25+
config PKG_NES_LOG_LEVEL_WARN
26+
bool "LOG_LEVEL_WARN"
27+
28+
config PKG_NES_LOG_LEVEL_INFO
29+
bool "LOG_LEVEL_INFO"
30+
31+
config PKG_NES_LOG_LEVEL_DEBUG
32+
bool "LOG_LEVEL_DEBUG"
33+
endchoice
34+
35+
choice
36+
prompt "PKG_NES_COLOR_DEPTH"
37+
default PKG_NES_COLOR_DEPTH_32
38+
help
39+
Select NES COLOR DEPTH, 16:rgb565, 32:rgb8888
40+
41+
config PKG_NES_COLOR_DEPTH_16
42+
bool "COLOR_DEPTH_16"
43+
44+
config PKG_NES_COLOR_DEPTH_32
45+
bool "COLOR_DEPTH_32"
46+
endchoice
47+
48+
if PKG_NES_COLOR_DEPTH_16
49+
config PKG_NES_COLOR_SWAP
50+
bool "Enable Color Swap"
51+
default y
52+
endif
53+
54+
config PKG_NES_ENABLE_SOUND
55+
bool "Enable Sound"
56+
default n
57+
help
58+
config nes to enable sound.
59+
60+
config PKG_NES_USE_FS
61+
bool "Enable File System"
62+
default y
63+
help
64+
config nes to use file system to load rom files.
65+
66+
config PKG_NES_FRAME_SKIP
67+
int "Frame Skip"
68+
range 0 5
69+
default 0
70+
71+
choice
72+
prompt "Version"
73+
default PKG_USING_NES_SIMULATOR_LATEST_VERSION
74+
help
75+
Select the package version
76+
77+
config PKG_USING_NES_SIMULATOR_V003
78+
bool "v0.0.4"
79+
80+
config PKG_USING_NES_SIMULATOR_LATEST_VERSION
81+
bool "latest"
82+
endchoice
83+
84+
config PKG_NES_SIMULATOR_VER
85+
string
86+
default "v0.0.4" if PKG_USING_NES_SIMULATOR_V003
87+
default "latest" if PKG_USING_NES_SIMULATOR_LATEST_VERSION
88+
89+
endif
90+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "nes_simulator",
3+
"description": "The nes simulator implemented in C.",
4+
"description_zh": "C语言实现的nes模拟器。",
5+
"enable": "PKG_USING_NES_SIMULATOR",
6+
"keywords": [
7+
"nes",
8+
"simulator",
9+
"game"
10+
],
11+
"category": "multimedia",
12+
"author": {
13+
"name": "PeakRacing",
14+
"email": "1473454180@qq.com",
15+
"github": "PeakRacing"
16+
},
17+
"license": "Apache-2.0",
18+
"repository": "https://github.com/PeakRacing/nes",
19+
"icon": "unknown",
20+
"homepage": "https://github.com/PeakRacing/nes#readme",
21+
"doc": "unknown",
22+
"site": [
23+
{
24+
"version": "v0.0.4",
25+
"URL": "https://github.com/PeakRacing/nes/archive/refs/tags/v0.0.4.zip",
26+
"filename": "nes-0.0.4.zip"
27+
},
28+
{
29+
"version": "latest",
30+
"URL": "https://github.com/PeakRacing/nes.git",
31+
"filename": "",
32+
"VER_SHA": "master"
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)