diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 8349a5eb55e8fd9d397adfe51fd7b312f52a2e8b..95d33693793c5d7cce3bde46f72647226c676467 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -88,6 +88,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/st7305/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/st7305/Kconfig b/peripherals/st7305/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..27097b77927ac30ef21e1fcaec4c30e63b8fc034 --- /dev/null +++ b/peripherals/st7305/Kconfig @@ -0,0 +1,45 @@ +# Kconfig file for package st7305 + +menuconfig PKG_USING_ST7305 + bool "Control the st7305 chip with SPI bus." + default n + +if PKG_USING_ST7305 + + config ST7305_SPI_BUS_NAME + string "Setting current SPI bus name." + default "spi1" + + config ST7305_SPI_DEVICE_NAME + string "Setting current SPI device name." + default "spi10" + + if RT_USING_HEAP + config FRAME_BUF_USING_HEAP + bool "Use heap with the frame buffer allocated." + default n + endif + + config PKG_ST7305_PATH + string + default "/packages/peripherals/st7305" + + choice + prompt "Version" + default PKG_USING_ST7305_V100 + help + Select the this package version + + config PKG_USING_ST7305_V100 + bool "v1.0.0" + + config PKG_USING_ST7305_LATEST_VERSION + bool "latest" + endchoice + + config PKG_ST7305_VER + string + default "v1.0.0" if PKG_USING_ST7305_V100 + default "latest" if PKG_USING_ST7305_LATEST_VERSION + +endif diff --git a/peripherals/st7305/package.json b/peripherals/st7305/package.json new file mode 100644 index 0000000000000000000000000000000000000000..645eff64fd6de5400613f6bb151420da50608445 --- /dev/null +++ b/peripherals/st7305/package.json @@ -0,0 +1,35 @@ +{ + "name": "st7305", + "description": "ST7305: Control the st7305 chip with SPI bus.", + "description_zh": "基于 rt-thread 的 PIN 和 SPI 驱动的 ST7305 LCD 驱动软件包。", + "enable": "PKG_USING_ST7305", + "keywords": [ + "st7305", + "lcd" + ], + "category": "peripherals", + "author": { + "name": "Sunwancn", + "email": "bwsheng2000@163.com", + "gitee": "Sunwancn" + }, + "license": "Apache-2.0", + "repository": "https://gitee.com/Sunwancn/rtt-pkgs-st7305", + "icon": "unknown", + "homepage": "https://gitee.com/Sunwancn/rtt-pkgs-st7305", + "doc": "https://gitee.com/Sunwancn/rtt-pkgs-st7305/README.md", + "site": [ + { + "version": "v1.0.0", + "URL": "https://gitee.com/sunwancn/rtt-pkgs-st7305/archive/refs/tags/V1.0.0.zip", + "filename": "rtt-pkgs-st7305-1.0.0.zip", + "VER_SHA": "NULL" + }, + { + "version": "latest", + "URL": "https://gitee.com/Sunwancn/rtt-pkgs-st7305.git", + "filename": "Null for git package", + "VER_SHA": "master" + } + ] +}