Skip to content
Merged
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
24 changes: 19 additions & 5 deletions peripherals/easyblink/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ if PKG_USING_EASYBLINK
bool "Blink led on console to test"
default n

config PKG_EASYBLINK_USING_MUTEX
bool "Use mutex to make thread safe"
select RT_USING_MUTEX
default n
if PKG_EASYBLINK_VER_NUM < 0x20100
config PKG_EASYBLINK_USING_MUTEX
bool "Use mutex to make thread safe"
select RT_USING_MUTEX
default n
endif

if RT_USING_HEAP
config PKG_EASYBLINK_USING_HEAP
Expand All @@ -33,10 +35,13 @@ if PKG_USING_EASYBLINK

choice
prompt "Version"
default PKG_USING_EASYBLINK_V201
default PKG_USING_EASYBLINK_V210
help
Select the package version

config PKG_USING_EASYBLINK_V210
bool "v2.1.0"

config PKG_USING_EASYBLINK_V201
bool "v2.0.1"

Expand All @@ -52,9 +57,18 @@ if PKG_USING_EASYBLINK

config PKG_EASYBLINK_VER
string
default "v2.1.0" if PKG_USING_EASYBLINK_V210
default "v2.0.1" if PKG_USING_EASYBLINK_V201
default "v2.0.0" if PKG_USING_EASYBLINK_V200
default "v1.0.0" if PKG_USING_EASYBLINK_V100
default "latest" if PKG_USING_EASYBLINK_LATEST_VERSION

config PKG_EASYBLINK_VER_NUM
hex
default 0x99999 if PKG_USING_EASYBLINK_LATEST_VERSION
default 0x10000 if PKG_USING_EASYBLINK_V100
default 0x20000 if PKG_USING_EASYBLINK_V200
default 0x20001 if PKG_USING_EASYBLINK_V201
default 0x20100 if PKG_USING_EASYBLINK_V210

endif
16 changes: 8 additions & 8 deletions peripherals/easyblink/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "easyblink",
"description": "Blink the LED easily and use a little RAM for RT-Thread or RT-Thread Nano.",
"description_zh": "小巧轻便的 LED 控制软件包,可以容易地控制 LED 开、关、反转和各种间隔闪烁,占用 RAM 少,支持 RT-Thread 标准版和 Nano 版。",
"description": "Blink the LED easily and use a little RAM for RT-Thread.",
"description_zh": "小巧轻便的 LED 控制软件包,可以容易地控制 LED 开、关、反转和各种间隔闪烁,占用 RAM 少。",
"enable": "PKG_USING_EASYBLINK",
"keywords": [
"easyblink",
Expand All @@ -20,12 +20,6 @@
"homepage": "https://github.com/Sunwancn/rtt-pkgs-easyblink",
"doc": "unknown",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/v1.0.0.zip",
"filename": "rtt-pkgs-easyblink-1.0.0.zip",
"VER_SHA": "NULL"
},
{
"version": "v2.0.0",
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/v2.0.0.zip",
Expand All @@ -38,6 +32,12 @@
"filename": "rtt-pkgs-easyblink-2.0.1.zip",
"VER_SHA": "NULL"
},
{
"version": "v2.1.0",
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/refs/tags/v2.1.0.zip",
"filename": "rtt-pkgs-easyblink-2.1.0.zip",
"VER_SHA": "NULL"
},
{
"version": "latest",
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink.git",
Expand Down
Loading