diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 9a35f9f7e9..7aa0fcaa26 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -89,6 +89,7 @@ source "$PKGS_DIR/packages/peripherals/can_uds/Kconfig" source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig" source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig" source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig" +source "$PKGS_DIR/packages/peripherals/irOnUart/Kconfig" source "$PKGS_DIR/packages/peripherals/st7305/Kconfig" source "$PKGS_DIR/packages/peripherals/tm1668/Kconfig" diff --git a/peripherals/irOnUart/Kconfig b/peripherals/irOnUart/Kconfig new file mode 100644 index 0000000000..f24c07e7e2 --- /dev/null +++ b/peripherals/irOnUart/Kconfig @@ -0,0 +1,50 @@ + +# Kconfig file for package irOnUart +menuconfig PKG_USING_IRUART + bool "irOnUart: infrared UART package" + default n + help + Enable infrared UART package.. + +if PKG_USING_IRUART + config PKG_IRUART_PATH + string + default "/packages/peripherals/irOnUart" + + choice + prompt "Version" + default PKG_USING_IRUART_LATEST_VERSION + help + Select the package version + + config PKG_USING_IRUART_V100 + bool "v1.0.0" + + config PKG_USING_IRUART_LATEST_VERSION + bool "latest" +endchoice + + config PKG_IRUART_VER + string + default "v1.0.0" if PKG_USING_IRUART_V100 + default "latest" if PKG_USING_IRUART_LATEST_VERSION + + config IR_USART_NAME + string "Infrared UART name" + default "uart4" + help + UART name for infrared . + + config IR_PWM_NAME + string "Infrared PWM name" + default "pwm1" + help + PWM name for infrared . + + config IR_PWM_CHAN + int "Infrared PWM channel" + default 4 + help + PWM channel for infrared . + +endif diff --git a/peripherals/irOnUart/package.json b/peripherals/irOnUart/package.json new file mode 100644 index 0000000000..cafbe0c5a5 --- /dev/null +++ b/peripherals/irOnUart/package.json @@ -0,0 +1,32 @@ +{ + "name": "irOnUart", + "description": "Infrared framework based on rt-thread's pwm and uart", + "description_zh": "基于 rt-thread 的pwm 和 uart 驱动的红外框架", + "enable": "PKG_USING_IRUART", + "keywords": [ + "infrared", + "红外" + ], + "category": "peripherals", + "author": { + "name": "龚金华", + "email": "782730309@qq.com", + "github": "GKoSon" + }, + "license": "MIT", + "repository": "https://github.com/GKoSon/IrOnUart", + "homepage": "https://github.com/GKoSon/IrOnUart#readme", + "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/GKoSon/IrOnUart/archive/refs/tags/v1.0.0.zip", + "filename": "IrOnUart-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/GKoSon/IrOnUart.git", + "filename": "IrOnUart.zip", + "VER_SHA": "main" + } + ] +}