From 85427902fd388d4bb51f2a3754de4331168d05c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E9=87=91=E5=8D=8E?= <782730309@qq.com> Date: Sun, 28 Dec 2025 13:37:06 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0ins5t8025=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 --- peripherals/Kconfig | 1 + peripherals/ins5t8025/Kconfig | 45 ++++++++++++++++++++++++++++++ peripherals/ins5t8025/package.json | 27 ++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 peripherals/ins5t8025/Kconfig create mode 100644 peripherals/ins5t8025/package.json diff --git a/peripherals/Kconfig b/peripherals/Kconfig index d17725eef8..2e90fcb65b 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -86,6 +86,7 @@ source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig" source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig" source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig" source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig" +source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/ins5t8025/Kconfig b/peripherals/ins5t8025/Kconfig new file mode 100644 index 0000000000..ceee5e3e9b --- /dev/null +++ b/peripherals/ins5t8025/Kconfig @@ -0,0 +1,45 @@ + +# Kconfig file for package ins5t8025 +menuconfig PKG_USING_INS5T8025 + bool "ins5t8025: hardware RTC chip driver package" + default n + select RT_USING_I2C + help + A driver package for INS5T8025 + +if PKG_USING_INS5T8025 + config PKG_INS5T8025_PATH + string + default "/packages/peripherals/ins5t8025" + + choice + prompt "Version" + default PKG_USING_INS5T8025_LATEST_VERSION + help + Select the package version + + config PKG_USING_INS5T8025_LATEST_VERSION + bool "latest" + endchoice + + config PKG_INS5T8025_VER + string + default "latest" if PKG_USING_INS5T8025_LATEST_VERSION + config INS5T8025_I2C_BUS + string "name of IIC bus for INS5T8025" + default "i2c2_sw" + help + Set INS5T8025 I2C bus. + + config INS5T8025_ALARM_INT_PIN + string "INS5T8025 ALARM INT Pin" + default "PE.4" + help + Configure the GPIO pin (format: Port.Pin, e.g., PB.12). + + config USING_INS5T8025_DEMO + bool "Enable INS5T8025 Demo (example folder)" + default n + help + Enable this option to compile the example code in the "example" folder. +endif diff --git a/peripherals/ins5t8025/package.json b/peripherals/ins5t8025/package.json new file mode 100644 index 0000000000..c69668a9bc --- /dev/null +++ b/peripherals/ins5t8025/package.json @@ -0,0 +1,27 @@ +{ + "name": "ins5t8025", + "description": "ins5t8025 driver based on soft IIC", + "description_zh": "基于软件IIC的RTC芯片ins5t8025的驱动", + "enable": "PKG_USING_INS5T8025", + "keywords": [ + "rtc", + "INS5T8025" + ], + "category": "peripherals", + "author": { + "name": "龚金华", + "email": "782730309@qq.com", + "github": "GKoSon" + }, + "license": "MIT", + "repository": "https://github.com/GKoSon/ins5t8025", + "homepage": "https://github.com/GKoSon/ins5t8025#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/GKoSon/ins5t8025.git", + "filename": "ins5t8025.zip", + "VER_SHA": "main" + } + ] +} From 3112e230893fcb54c0ee5bef38fadf6af3e679fb Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Sun, 28 Dec 2025 14:06:41 +0800 Subject: [PATCH 2/6] Clarify driver package description for INS5T8025 Updated help text to clarify the driver package for the RTC chip. --- peripherals/ins5t8025/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/ins5t8025/Kconfig b/peripherals/ins5t8025/Kconfig index ceee5e3e9b..5c38837066 100644 --- a/peripherals/ins5t8025/Kconfig +++ b/peripherals/ins5t8025/Kconfig @@ -5,7 +5,7 @@ menuconfig PKG_USING_INS5T8025 default n select RT_USING_I2C help - A driver package for INS5T8025 + A driver package for RTC chip INS5T8025 if PKG_USING_INS5T8025 config PKG_INS5T8025_PATH From 08af83c769e33525147af86146843864649041a1 Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Sun, 28 Dec 2025 14:20:32 +0800 Subject: [PATCH 3/6] re-trigger ci --- peripherals/ins5t8025/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/ins5t8025/Kconfig b/peripherals/ins5t8025/Kconfig index 5c38837066..4717b0712b 100644 --- a/peripherals/ins5t8025/Kconfig +++ b/peripherals/ins5t8025/Kconfig @@ -5,7 +5,7 @@ menuconfig PKG_USING_INS5T8025 default n select RT_USING_I2C help - A driver package for RTC chip INS5T8025 + A driver package for hardware RTC chip INS5T8025 if PKG_USING_INS5T8025 config PKG_INS5T8025_PATH From 3173ec8a316b0202af68f0010a4349b18b58ce65 Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Sun, 28 Dec 2025 14:41:04 +0800 Subject: [PATCH 4/6] re-trigger ci... --- peripherals/ins5t8025/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/ins5t8025/Kconfig b/peripherals/ins5t8025/Kconfig index 4717b0712b..e38cc17992 100644 --- a/peripherals/ins5t8025/Kconfig +++ b/peripherals/ins5t8025/Kconfig @@ -5,7 +5,7 @@ menuconfig PKG_USING_INS5T8025 default n select RT_USING_I2C help - A driver package for hardware RTC chip INS5T8025 + A driver package for hardware RTC chip INS5T8025 on IIC bus if PKG_USING_INS5T8025 config PKG_INS5T8025_PATH From 7836ff04ab10c286fbba715d3f24771a3c0b258f Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Sun, 4 Jan 2026 11:18:48 +0800 Subject: [PATCH 5/6] Update peripherals/ins5t8025/package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- peripherals/ins5t8025/package.json | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/peripherals/ins5t8025/package.json b/peripherals/ins5t8025/package.json index c69668a9bc..a80e8d7650 100644 --- a/peripherals/ins5t8025/package.json +++ b/peripherals/ins5t8025/package.json @@ -1,27 +1,27 @@ { - "name": "ins5t8025", - "description": "ins5t8025 driver based on soft IIC", - "description_zh": "基于软件IIC的RTC芯片ins5t8025的驱动", - "enable": "PKG_USING_INS5T8025", - "keywords": [ - "rtc", - "INS5T8025" - ], - "category": "peripherals", - "author": { - "name": "龚金华", - "email": "782730309@qq.com", - "github": "GKoSon" - }, - "license": "MIT", - "repository": "https://github.com/GKoSon/ins5t8025", - "homepage": "https://github.com/GKoSon/ins5t8025#readme", - "site": [ - { - "version": "latest", - "URL": "https://github.com/GKoSon/ins5t8025.git", - "filename": "ins5t8025.zip", - "VER_SHA": "main" - } - ] + "name": "ins5t8025", + "description": "ins5t8025 driver based on soft IIC", + "description_zh": "基于软件IIC的RTC芯片ins5t8025的驱动", + "enable": "PKG_USING_INS5T8025", + "keywords": [ + "rtc", + "INS5T8025" + ], + "category": "peripherals", + "author": { + "name": "龚金华", + "email": "782730309@qq.com", + "github": "GKoSon" + }, + "license": "MIT", + "repository": "https://github.com/GKoSon/ins5t8025", + "homepage": "https://github.com/GKoSon/ins5t8025#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/GKoSon/ins5t8025.git", + "filename": "ins5t8025.zip", + "VER_SHA": "main" + } + ] } From 8806e2cc74a6befb2140d4fc33b25aa651ebe4df Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Sun, 4 Jan 2026 11:19:00 +0800 Subject: [PATCH 6/6] Update peripherals/ins5t8025/Kconfig Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- peripherals/ins5t8025/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/ins5t8025/Kconfig b/peripherals/ins5t8025/Kconfig index e38cc17992..26191d7c6c 100644 --- a/peripherals/ins5t8025/Kconfig +++ b/peripherals/ins5t8025/Kconfig @@ -1,7 +1,7 @@ # Kconfig file for package ins5t8025 menuconfig PKG_USING_INS5T8025 - bool "ins5t8025: hardware RTC chip driver package" + bool "ins5t8025: hardware RTC chip driver package based on soft IIC" default n select RT_USING_I2C help