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 peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
50 changes: 50 additions & 0 deletions peripherals/irOnUart/Kconfig
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions peripherals/irOnUart/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
Loading