Skip to content

Commit 7e7b564

Browse files
author
pfchen
committed
[update][sdk]release v2.2.0 version
1 parent 76ebf6f commit 7e7b564

7,007 files changed

Lines changed: 1559080 additions & 923691 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
cmake_minimum_required(VERSION 3.15)
22

3+
sdk_add_compile_definitions(-D CONFIG_BOUFFALO_SDK)
4+
35
# check VERSION file
46
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
57
# read info from VERSION file
@@ -10,7 +12,7 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
1012
else()
1113
# get git tag
1214
execute_process(
13-
COMMAND git describe --abbrev=8 --tags --dirty --always
15+
COMMAND git describe --abbrev=8 --tags --dirty --always --match "sdk-*"
1416
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
1517
OUTPUT_VARIABLE GIT_TAG
1618
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -31,14 +33,26 @@ set(SOURCE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
3133
sdk_add_compile_options("-fmacro-prefix-map=${SOURCE_PATH}=.")
3234
sdk_add_compile_options("-fdebug-prefix-map=${SOURCE_PATH}=.")
3335

36+
if(CONFIG_ANTI_ROLLBACK)
37+
sdk_add_compile_definitions(-DCONFIG_ANTI_ROLLBACK)
38+
endif()
39+
sdk_add_compile_definitions(-DCONFIG_APP_ANTI_ROLLBACK_VER=${CONFIG_APP_ANTI_ROLLBACK_VER})
40+
3441
add_subdirectory(bsp)
3542
add_subdirectory(components)
3643
add_subdirectory(drivers/lhal)
3744
add_subdirectory(drivers/soc/${CHIP}/std)
45+
if("${CHIP}" STREQUAL "bl702")
46+
add_subdirectory(drivers/sys)
47+
endif()
48+
if("${CHIP}" STREQUAL "bl702l")
49+
add_subdirectory(drivers/sys)
50+
endif()
3851
if("${CHIP}" STREQUAL "bl616")
39-
sdk_add_subdirectory_ifdef(CONFIG_PM drivers/pm)
52+
add_subdirectory(drivers/sys)
4053
endif()
4154
sdk_add_subdirectory_ifdef(CONFIG_RF drivers/soc/${CHIP}/phyrf)
4255
if("${CHIP}" STREQUAL "bl616")
4356
sdk_add_subdirectory_ifdef(CONFIG_RF drivers/rfparam)
57+
sdk_add_subdirectory_ifdef(CONFIG_PHY_LPFW drivers/soc/bl616/phyrf)
4458
endif()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Note:**√** means supported ; **×** means not supported; **○** means suppo
6666
|:------------:|:--------------:|:--------------------:|:-----------:|:--------:|
6767
| WIFI4 | × | - | - | × |
6868
| WIFI6 | - | - || - |
69-
| BT | - | - | | × |
69+
| BT | - | - | × | × |
7070
| BLE | × | × || × |
7171
| ZIGBEE | - | × | × | × |
7272

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
|:------------:|:--------------:|:--------------------:|:-----------:|:--------:|
6767
| WIFI4 | × | - | - | × |
6868
| WIFI6 | - | - || - |
69-
| BT | - | - | | × |
69+
| BT | - | - | × | × |
7070
| BLE | × | × || × |
7171
| ZIGBEE | - | × | × | × |
7272

ReleaseNotes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ bouffalo_sdk Release Notes
33
此文件包含 bouffalo_sdk 软件开发包的发行说明。
44
每个版本的文字说明与发布时的说明保持一致(可能会有错别字的勘误)。
55

6+
bouffalo_sdk Release V2.2.0
7+
----------------------------
8+
Note:
9+
1.update ethernet driver
10+
2.update lvgl to support v8 & v9
11+
3.add bl616 openai solution
12+
4.add bl616 image transmission solution
13+
5.update all chips std driver
14+
615
bouffalo_sdk Release V2.0
716
----------------------------
817

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROJECT_SDK_VERSION "2.0.0"
1+
PROJECT_SDK_VERSION "2.2.0"

bouffalo_sdk.code-workspace

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {}
8+
}

bsp/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$" MATCHED_VERSION "${PROJECT_SDK_VERSION}")
2+
3+
if(MATCHED_VERSION)
4+
string(REGEX MATCHALL "[0-9]+" VERSION_LIST "${MATCHED_VERSION}")
5+
list(GET VERSION_LIST 0 X)
6+
list(GET VERSION_LIST 1 Y)
7+
list(GET VERSION_LIST 2 Z)
8+
9+
if(X LESS 255 AND Y LESS 255 AND Z LESS 255)
10+
sdk_add_compile_definitions(-DAPP_VER_X=${X})
11+
sdk_add_compile_definitions(-DAPP_VER_Y=${Y})
12+
sdk_add_compile_definitions(-DAPP_VER_Z=${Z})
13+
else()
14+
message(FATAL_ERROR "Invalid VERSION: number not less than 255")
15+
endif()
16+
else()
17+
message(FATAL_ERROR "Invalid VERSION: Must be x.y.z")
18+
endif()
19+
120
configure_file(
221
"${CMAKE_CURRENT_SOURCE_DIR}/sdk_version.h.in"
322
"${CMAKE_BINARY_DIR}/generated/sdk_version.h"

bsp/board/bl602dk/bl602_flash.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ SECTIONS
9797

9898
} > xip_memory
9999

100+
.build_id :
101+
{
102+
. = ALIGN(4);
103+
elf_build_id = ABSOLUTE(.) + 16;
104+
*(.note.gnu.build-id)
105+
} > xip_memory
106+
100107
. = ALIGN(4);
101108
__itcm_load_addr = .;
102109

bsp/board/bl602dk/board.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ void board_init(void)
157157
#endif
158158

159159
bflb_irq_restore(flag);
160+
161+
printf("board init done\r\n");
162+
printf("===========================\r\n");
160163
}
161164

162165
void board_uartx_gpio_init()

bsp/board/bl602dk/config/bl_factory_params_IoTKitA_40M.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@
339339
//negative value is NOT supported. So we use '256' for 0, '255' for -1, '257' for 1,'511' for 256
340340
};
341341
cap_temp {
342-
en_cap_temp = <0>; //0x0060 长度1
343-
temp = <253 252 20 39 39 40 41 42 43 44 >; //0x0061 长度10
344-
capcode = <28 29 30 31 32 33 34 35 36 37 38 >; //0x0062 长度11
342+
en_cap_temp = <0>; //0x0060 length:1
343+
temp = <253 252 20 39 39 40 41 42 43 44 >; //0x0061 length:10
344+
capcode = <28 29 30 31 32 33 34 35 36 37 38 >; //0x0062 length:11
345345
};
346346
};
347347
bluetooth {

0 commit comments

Comments
 (0)