@@ -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+
6074endif
0 commit comments