Skip to content

Commit d0e04a9

Browse files
SunwancnRbb666
authored andcommitted
[peripherals/easyblink]发布V2.1.0
1 parent 0bc801a commit d0e04a9

2 files changed

Lines changed: 27 additions & 13 deletions

File tree

peripherals/easyblink/Kconfig

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ if PKG_USING_EASYBLINK
1616
bool "Blink led on console to test"
1717
default n
1818

19-
config PKG_EASYBLINK_USING_MUTEX
20-
bool "Use mutex to make thread safe"
21-
select RT_USING_MUTEX
22-
default n
19+
if PKG_EASYBLINK_VER_NUM < 0x20100
20+
config PKG_EASYBLINK_USING_MUTEX
21+
bool "Use mutex to make thread safe"
22+
select RT_USING_MUTEX
23+
default n
24+
endif
2325

2426
if RT_USING_HEAP
2527
config PKG_EASYBLINK_USING_HEAP
@@ -33,10 +35,13 @@ if PKG_USING_EASYBLINK
3335

3436
choice
3537
prompt "Version"
36-
default PKG_USING_EASYBLINK_V201
38+
default PKG_USING_EASYBLINK_V210
3739
help
3840
Select the package version
3941

42+
config PKG_USING_EASYBLINK_V210
43+
bool "v2.1.0"
44+
4045
config PKG_USING_EASYBLINK_V201
4146
bool "v2.0.1"
4247

@@ -52,9 +57,18 @@ if PKG_USING_EASYBLINK
5257

5358
config PKG_EASYBLINK_VER
5459
string
60+
default "v2.1.0" if PKG_USING_EASYBLINK_V210
5561
default "v2.0.1" if PKG_USING_EASYBLINK_V201
5662
default "v2.0.0" if PKG_USING_EASYBLINK_V200
5763
default "v1.0.0" if PKG_USING_EASYBLINK_V100
5864
default "latest" if PKG_USING_EASYBLINK_LATEST_VERSION
5965

66+
config PKG_EASYBLINK_VER_NUM
67+
hex
68+
default 0x99999 if PKG_USING_EASYBLINK_LATEST_VERSION
69+
default 0x10000 if PKG_USING_EASYBLINK_V100
70+
default 0x20000 if PKG_USING_EASYBLINK_V200
71+
default 0x20001 if PKG_USING_EASYBLINK_V201
72+
default 0x20100 if PKG_USING_EASYBLINK_V210
73+
6074
endif

peripherals/easyblink/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "easyblink",
3-
"description": "Blink the LED easily and use a little RAM for RT-Thread or RT-Thread Nano.",
4-
"description_zh": "小巧轻便的 LED 控制软件包,可以容易地控制 LED 开、关、反转和各种间隔闪烁,占用 RAM 少,支持 RT-Thread 标准版和 Nano 版",
3+
"description": "Blink the LED easily and use a little RAM for RT-Thread.",
4+
"description_zh": "小巧轻便的 LED 控制软件包,可以容易地控制 LED 开、关、反转和各种间隔闪烁,占用 RAM 少。",
55
"enable": "PKG_USING_EASYBLINK",
66
"keywords": [
77
"easyblink",
@@ -20,12 +20,6 @@
2020
"homepage": "https://github.com/Sunwancn/rtt-pkgs-easyblink",
2121
"doc": "unknown",
2222
"site": [
23-
{
24-
"version": "v1.0.0",
25-
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/v1.0.0.zip",
26-
"filename": "rtt-pkgs-easyblink-1.0.0.zip",
27-
"VER_SHA": "NULL"
28-
},
2923
{
3024
"version": "v2.0.0",
3125
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/v2.0.0.zip",
@@ -38,6 +32,12 @@
3832
"filename": "rtt-pkgs-easyblink-2.0.1.zip",
3933
"VER_SHA": "NULL"
4034
},
35+
{
36+
"version": "v2.1.0",
37+
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink/archive/refs/tags/v2.1.0.zip",
38+
"filename": "rtt-pkgs-easyblink-2.1.0.zip",
39+
"VER_SHA": "NULL"
40+
},
4141
{
4242
"version": "latest",
4343
"URL": "https://github.com/Sunwancn/rtt-pkgs-easyblink.git",

0 commit comments

Comments
 (0)