From 1de90d0c3866776d916ee0cc3a762de0df7b56d8 Mon Sep 17 00:00:00 2001 From: Ghazi <936945752@qq.com> Date: Mon, 14 Dec 2020 11:23:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0gbk2utf8=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/Kconfig | 1 + tools/gbk2utf8/Kconfig | 28 ++++++++++++++++++++++++++++ tools/gbk2utf8/package.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tools/gbk2utf8/Kconfig create mode 100644 tools/gbk2utf8/package.json diff --git a/tools/Kconfig b/tools/Kconfig index 57b17ed4..ffdd9298 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 00000000..7729d6b8 --- /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 00000000..ccfc2fbb --- /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" + } + ] +} -- Gitee From 70beddbc4af4087d0e5ee4cf6f1803433aeffb32 Mon Sep 17 00:00:00 2001 From: Ghazi <936945752@qq.com> Date: Mon, 14 Dec 2020 17:08:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0nes=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/Kconfig | 1 + peripherals/nes/Kconfig | 40 ++++++++++++++++++++++++++++++++++++ peripherals/nes/package.json | 28 +++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 peripherals/nes/Kconfig create mode 100644 peripherals/nes/package.json diff --git a/peripherals/Kconfig b/peripherals/Kconfig index dbe95e58..a656dfad 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 00000000..9ff62075 --- /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 00000000..0060f6f6 --- /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" + } + ] +} -- Gitee