forked from bouffalolab/bouffalo_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] update mfg, ble lib and some demos
- Loading branch information
Showing
15 changed files
with
148 additions
and
22 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+446 KB
...mfg_bl616_gu_7ac31f104_autoboot_v2.35.bin → ...mfg_bl616_gu_9de2868a7_autoboot_v2.38.bin
Binary file not shown.
Binary file renamed
BIN
+446 KB
...tin_imgs/mfg_bl616_gu_7ac31f104_v2.35.bin → ...tin_imgs/mfg_bl616_gu_9de2868a7_v2.38.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+446 KB
...k/config/mfg_bl616_gu_7ac31f104_v2.35.bin → ...k/config/mfg_bl616_gu_9de2868a7_v2.38.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+5.92 KB
(100%)
components/wireless/bluetooth/btblecontroller/lib/libbtblecontroller_bl616_ble1m0s1bredr0.a
Binary file not shown.
Binary file modified
BIN
+6.22 KB
(100%)
components/wireless/bluetooth/btblecontroller/lib/libbtblecontroller_bl616_ble1m10s1bredr0.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
include(proj.conf) | ||
|
||
find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE}) | ||
|
||
sdk_set_main_file(main.c) | ||
|
||
project(uart_cts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SDK_DEMO_PATH ?= . | ||
BL_SDK_BASE ?= $(SDK_DEMO_PATH)/../../../.. | ||
|
||
export BL_SDK_BASE | ||
|
||
CHIP ?= bl616 | ||
BOARD ?= bl616dk | ||
CROSS_COMPILE ?= riscv64-unknown-elf- | ||
|
||
# add custom cmake definition | ||
#cmake_definition+=-Dxxx=sss | ||
|
||
include $(BL_SDK_BASE)/project.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# uart_cts | ||
|
||
|
||
## Support CHIP | ||
|
||
| CHIP | Remark | | ||
|:----------------:|:------:| | ||
|BL602/BL604 | | | ||
|BL702/BL704/BL706 | | | ||
|BL616/BL618 | | | ||
|BL808 | D0 has no irq in uart0 ~uart2, should use uart3 | | ||
|
||
## Compile | ||
|
||
- BL602/BL604 | ||
|
||
``` | ||
make CHIP=bl602 BOARD=bl602dk | ||
``` | ||
|
||
- BL702/BL704/BL706 | ||
|
||
``` | ||
make CHIP=bl702 BOARD=bl702dk | ||
``` | ||
|
||
- BL616/BL618 | ||
|
||
``` | ||
make CHIP=bl616 BOARD=bl616dk | ||
``` | ||
|
||
- BL808 | ||
|
||
``` | ||
make CHIP=bl808 BOARD=bl808dk CPU_ID=m0 | ||
make CHIP=bl808 BOARD=bl808dk CPU_ID=d0 | ||
``` | ||
|
||
## Flash | ||
|
||
``` | ||
make flash CHIP=chip_name COMX=xxx # xxx is your com name | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[cfg] | ||
# 0: no erase, 1:programmed section erase, 2: chip erase | ||
erase = 1 | ||
# skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separated | ||
skip_mode = 0x0, 0x0 | ||
# 0: not use isp mode, #1: isp mode | ||
boot2_isp_mode = 0 | ||
|
||
[FW] | ||
filedir = ./build/build_out/uart*_$(CHIPNAME).bin | ||
address = 0x000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "bflb_mtimer.h" | ||
#include "bflb_uart.h" | ||
#include "board.h" | ||
|
||
struct bflb_device_s *uartx; | ||
static uint8_t uart_txbuf[128] = { 0 }; | ||
|
||
int main(void) | ||
{ | ||
board_init(); | ||
board_uartx_gpio_init(); | ||
|
||
for (uint8_t i = 0; i < 128; i++) { | ||
uart_txbuf[i] = i; | ||
} | ||
|
||
uartx = bflb_device_get_by_name(DEFAULT_TEST_UART); | ||
|
||
struct bflb_uart_config_s cfg; | ||
|
||
cfg.baudrate = 115200; | ||
cfg.data_bits = UART_DATA_BITS_8; | ||
cfg.stop_bits = UART_STOP_BITS_1; | ||
cfg.parity = UART_PARITY_NONE; | ||
cfg.flow_ctrl = 0; | ||
cfg.tx_fifo_threshold = 7; | ||
cfg.rx_fifo_threshold = 7; | ||
bflb_uart_init(uartx, &cfg); | ||
|
||
bflb_uart_feature_control(uartx, UART_CMD_SET_CTS_EN, true); | ||
|
||
while (1) { | ||
for (uint8_t i = 0; i < 128; i++) { | ||
bflb_uart_putchar(uartx, uart_txbuf[i]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#set(CONFIG_XXX 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters