Skip to content
Open
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/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ menuconfig PKG_USING_EXTERN_RTC_DRIVERS

source "$PKGS_DIR/packages/peripherals/rtc/ds3231/Kconfig"
source "$PKGS_DIR/packages/peripherals/rtc/rx8900/Kconfig"
source "$PKGS_DIR/packages/peripherals/rtc/ds1307/Kconfig"

endif
48 changes: 48 additions & 0 deletions peripherals/rtc/ds1307/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

# Kconfig file for package ds1307
menuconfig PKG_USING_DS1307
bool "ds1307 Extern RTC Driver."
default n
select RT_USING_MTD_NOR
select RT_USING_I2C

if PKG_USING_DS1307

config PKG_DS1307_IIC_BUS
string "select iic bus"
default "i2c1"

config PKG_DS1307_DEBUG
bool "Enable output rtc ds1307 debug message"
default n

config PKG_DS1307_RAM_SHELL_TEST
bool "Enable ds1307 RAM read write test in finsh"
default n

config PKG_DS1307_PATH
string
default "/packages/peripherals/rtc/ds1307"

choice
default PKG_USING_DS1307_LATEST_VERSION
prompt "Version"
help
Select the package version

config PKG_USING_DS1307_V100
bool "v1.0.0"

config PKG_USING_DS1307_LATEST_VERSION
bool "latest"
endchoice

config PKG_DS1307_VER
string
default "v1.0.0" if PKG_USING_DS1307_V100
default "latest" if PKG_USING_DS1307_LATEST_VERSION



endif

33 changes: 33 additions & 0 deletions peripherals/rtc/ds1307/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "ds1307",
"description": "Extern RTC driver for ds1307 .",
"description_zh": " ds1307 外置RTC驱动",
"enable": "PKG_USING_DS1307",
"keywords": [
"ds1307"
],
"category": "peripherals/rtc",
"author": {
"name": "chejia12",
"email": "1085582540@qq.com",
"github": "chejia12"
},
"license": "Apache-2.0",
"repository": "https://gitee.com/chejia12/ds1307",
"icon": "unknown",
"homepage": "https://gitee.com/chejia12/ds1307",
"doc": "unknown",
"site": [
{
"version": "V1.0.0",
"URL": "https://gitee.com/chejia12/ds1307/releases/download/V1.0.0/V1.0.0.zip",
"filename": "ds1307V1.0.0.zip"
},
{
"version": "latest",
"URL": "https://gitee.com/chejia12/ds1307.git",
"filename": "",
"VER_SHA": "master"
}
]
}