Skip to content

Commit

Permalink
fix bug of qkey, release crclib v1.02, add hardware crc for stm32 ser…
Browse files Browse the repository at this point in the history
…ies (#1222)

* fix bug of qkey

* crclib release v1.02

* crclib add hardware crc for stm32 series
  • Loading branch information
qiyongzhong0 authored Mar 24, 2022
1 parent 5d0369d commit 2a6fd1c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
17 changes: 16 additions & 1 deletion misc/crclib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,35 @@ if PKG_USING_CRCLIB
config CRCLIB_USING_CRC16_EX_SAMPLE
bool "using 16 bit crc expand sample"
default n

config CRCLIB_USING_CRC_HW
bool "using hardware crc"
default n

config CRCLIB_USING_CRC_HW_SAMPLE
bool "using hardware crc sample"
default n

choice
prompt "Version"
default PKG_USING_CRCLIB_V100
default PKG_USING_CRCLIB_V102
help
Select the package version
config PKG_USING_CRCLIB_LATEST_VERSION
bool "latest"
config PKG_USING_CRCLIB_V102
bool "v1.02"
config PKG_USING_CRCLIB_V101
bool "v1.01"
config PKG_USING_CRCLIB_V100
bool "v1.00"
endchoice

config PKG_CRCLIB_VER
string
default "latest" if PKG_USING_CRCLIB_LATEST_VERSION
default "v1.02" if PKG_USING_CRCLIB_V102
default "v1.01" if PKG_USING_CRCLIB_V101
default "v1.00" if PKG_USING_CRCLIB_V100

endif
Expand Down
24 changes: 18 additions & 6 deletions misc/crclib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,29 @@
"icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png",
"homepage": "https://github.com/qiyongzhong0/crclib#readme",
"site": [
{
"version": "v1.00",
"URL": "https://github.com/qiyongzhong0/crclib/archive/v1.00.zip",
"filename": "crclib-1.00.zip",
"VER_SHA": ""
},
{
"version": "latest",
"URL": "https://github.com/qiyongzhong0/crclib.git",
"filename": "",
"VER_SHA": "master"
},
{
"version": "v1.02",
"URL": "https://github.com/qiyongzhong0/crclib/archive/v1.02.zip",
"filename": "crclib-1.02.zip",
"VER_SHA": ""
},
{
"version": "v1.01",
"URL": "https://github.com/qiyongzhong0/crclib/archive/v1.01.zip",
"filename": "crclib-1.01.zip",
"VER_SHA": ""
},
{
"version": "v1.00",
"URL": "https://github.com/qiyongzhong0/crclib/archive/v1.00.zip",
"filename": "crclib-1.00.zip",
"VER_SHA": ""
}
]
}
6 changes: 3 additions & 3 deletions peripherals/qkey/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ if PKG_USING_QKEY
config PKG_USING_QKEY_LATEST_VERSION
bool "latest"

config PKG_USING_QLED_V111
config PKG_USING_QKEY_V111
bool "v1.11"

config PKG_USING_QLED_V110
config PKG_USING_QKEY_V110
bool "v1.10"

config PKG_USING_QLED_V100
config PKG_USING_QKEY_V100
bool "v1.00"
endchoice

Expand Down

0 comments on commit 2a6fd1c

Please sign in to comment.