Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -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"
Expand Down
45 changes: 45 additions & 0 deletions peripherals/st7305/Kconfig
Original file line number Diff line number Diff line change
@@ -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
35 changes: 35 additions & 0 deletions peripherals/st7305/package.json
Original file line number Diff line number Diff line change
@@ -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://github.com/Sunwancn/rtt-pkgs-st7305",
"icon": "unknown",
"homepage": "https://github.com/Sunwancn/rtt-pkgs-st7305",
"doc": "https://github.com/Sunwancn/rtt-pkgs-st7305/README.md",
Comment thread
Sunwancn marked this conversation as resolved.
Outdated
"site": [
{
"version": "v1.0.0",
"URL": "https://github.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://github.com/Sunwancn/rtt-pkgs-st7305.git",
"filename": "Null for git package",
"VER_SHA": "master"
}
]
}
Loading