diff --git a/peripherals/Kconfig b/peripherals/Kconfig index dbe95e580b0d312920bc3d8af7806d604017965c..a656dfade9df6f6dcab7813d66bfea638977f7b4 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -56,5 +56,6 @@ source "$PKGS_DIR/packages/peripherals/dm9051/Kconfig" source "$PKGS_DIR/packages/peripherals/ssd1306/Kconfig" source "$PKGS_DIR/packages/peripherals/qkey/Kconfig" source "$PKGS_DIR/packages/peripherals/rs485/Kconfig" +source "$PKGS_DIR/packages/peripherals/nes/Kconfig" endmenu diff --git a/peripherals/nes/Kconfig b/peripherals/nes/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..9ff62075da2dbcb7c906aaee287c29fdd8340b73 --- /dev/null +++ b/peripherals/nes/Kconfig @@ -0,0 +1,40 @@ + +# Kconfig file for package nes +menuconfig PKG_USING_NES + bool "nes: nes simulator c Library." + default n + +if PKG_USING_NES + + config PKG_NES_PATH + string + default "/packages/peripherals/nes" + + config PKG_NES_DFS + bool "enable nes file system" + default false + + config PKG_NES_FRAME_SKIP + int "config frame skip" + default 2 + + config PKG_NES_DOUBLE_FRAMEBUFFER + bool "enable double frame buffer" + default true + + choice + prompt "Version" + default PKG_USING_NES_LATEST_VERSION + help + Select the package version + + config PKG_USING_NES_LATEST_VERSION + bool "latest" + endchoice + + config PKG_NES_VER + string + default "latest" if PKG_USING_NES_LATEST_VERSION + +endif + diff --git a/peripherals/nes/package.json b/peripherals/nes/package.json new file mode 100644 index 0000000000000000000000000000000000000000..0060f6f6447d45fd0db48ee9940de153442a626b --- /dev/null +++ b/peripherals/nes/package.json @@ -0,0 +1,28 @@ +{ + "name": "nes", + "description": "nes simulator c Library.", + "description_zh": "nes模拟器c库。", + "enable": "PKG_USING_NES", + "keywords": [ + "nes" + ], + "category": "peripherals", + "author": { + "name": "Ghazigq", + "email": "ghazi.gq@hotmail.com", + "github": "Ghazigq" + }, + "license": "Apache-2.0", + "repository": "https://gitee.com/Ghazi_gq/nes", + "icon": "unknown", + "homepage": "https://gitee.com/Ghazi_gq/nes#README", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://gitee.com/Ghazi_gq/nes.git", + "filename": "nes.zip", + "VER_SHA": "master" + } + ] +} diff --git a/tools/Kconfig b/tools/Kconfig index 57b17ed41c0f399e44879905cdc049bf0e9bb8cc..ffdd92987082f6b76005edc81d006da99cd5ab55 100644 --- a/tools/Kconfig +++ b/tools/Kconfig @@ -20,5 +20,6 @@ source "$PKGS_DIR/packages/tools/UrlEncode/Kconfig" source "$PKGS_DIR/packages/tools/uMCN/Kconfig" source "$PKGS_DIR/packages/tools/lwrb2rtt/Kconfig" source "$PKGS_DIR/packages/tools/cpu_usage/Kconfig" +source "$PKGS_DIR/packages/tools/gbk2utf8/Kconfig" endmenu diff --git a/tools/gbk2utf8/Kconfig b/tools/gbk2utf8/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..7729d6b8e489eda3336ae2fd7c1606d8a3127c09 --- /dev/null +++ b/tools/gbk2utf8/Kconfig @@ -0,0 +1,28 @@ + +# Kconfig file for package gbk2utf8 +menuconfig PKG_USING_GBK2UTF8 + bool "GBK2UTF8: conversion between GBK and UTF8." + default n + +if PKG_USING_GBK2UTF8 + + config PKG_GBK2UTF8_PATH + string + default "/packages/tools/gbk2utf8" + + choice + prompt "Version" + default PKG_USING_GBK2UTF8_LATEST_VERSION + help + Select the package version + + config PKG_USING_GBK2UTF8_LATEST_VERSION + bool "latest" + endchoice + + config PKG_GBK2UTF8_VER + string + default "latest" if PKG_USING_GBK2UTF8_LATEST_VERSION + +endif + diff --git a/tools/gbk2utf8/package.json b/tools/gbk2utf8/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ccfc2fbb767f1663cc19a5634e92f2076cb974da --- /dev/null +++ b/tools/gbk2utf8/package.json @@ -0,0 +1,28 @@ +{ + "name": "gbk2utf8", + "description": "conversion between GBK and UTF8.", + "description_zh": "GBK与UTF8编码之间的转换。", + "enable": "PKG_USING_GBK2UTF8", + "keywords": [ + "gbk2utf8" + ], + "category": "tools", + "author": { + "name": "Ghazigq", + "email": "ghazi.gq@hotmail.com", + "github": "Ghazigq" + }, + "license": "Apache-2.0", + "repository": "https://gitee.com/Ghazi_gq/gbk2utf8", + "icon": "unknown", + "homepage": "https://gitee.com/Ghazi_gq/gbk2utf8#README", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://gitee.com/Ghazi_gq/gbk2utf8.git", + "filename": "gbk2utf8.zip", + "VER_SHA": "master" + } + ] +}