Skip to content

Commit

Permalink
add t2 release version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingcys committed Dec 22, 2023
0 parents commit 20e4d35
Show file tree
Hide file tree
Showing 1,658 changed files with 1,179,569 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.o
*.d
*.map
*.nmap
beken_os/Debug
beken_os/.ver
beken_os/.config
beken_os/tools/generate/config.json
beken_os/tools/generate/*.cpr
beken_os/tools/generate/*.out
beken_os/tools/generate/*.bin
!beken_os/tools/generate/t2_bootloader.bin
!beken_os/tools/generate/t2_bootloader_enc.bin
!beken_os/tools/generate/package.bin
qt_proj/
toolchain/gcc-arm-none-eabi-4_9-2015q1
29 changes: 29 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
menu "configure bk7231n"
config OPERATING_SYSTEM
int "OPERATING_SYSTEM --- mandatory for board"
default 98
---help---
100 /* LINUX */
98 /* RTOS */
3 /* Non-OS */

config ENABLE_WIFI
bool "ENABLE_WIFI --- use wifi to connect"
default y

config ENABLE_WATCHDOG
bool "ENABLE_WATCHDOG --- use watchdog"
default y

config ENABLE_BLUETOOTH
bool "ENABLE_BLUETOOTH --- use bluetooth to connect"
default y

config LITTLE_END
int "LITTLE_END --- mandatory for board"
default 1
---help---
0 /* big endian */
1 /* little endian */

endmenu
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# T2
English | [中文](README_zh.md)

**T2-U development board** is designed for prototyping smart devices easily and quickly. You can use it with other purpose-built modules or development boards to evaluate your project.

<img alt="image.png" src="https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/16781047011ffea0d5520.png" width="400">

## T2-U module Overview
T2-U development board consists of Tuya’s highly-integrated Wi-Fi and Bluetooth module [T2-U](https://developer.tuya.com/en/docs/iot/T2-U-module-datasheet?id=Kce1tncb80ldq) and peripherals including buttons, LED indicator, GPIOs, power, and USB-to-serial chip.

T2-U is built-in with a 32-bit MCU with a running speed of up to 120 MHz, 2 Mbyte flash, and 256-KB RAM。

### Features

- Embedded low-power 32-bit CPU, which can also function as an application processor
- The clock rate: 120 MHz
- Operating voltage: 3.0V to 3.6V
- Peripherals:
- 6×PWM
- 4xTimer
- 2×UART
- 1×SPI
- 2xI2C
- 1xADC
- 19xGPIO
- Wi-Fi connectivity
- 802.11 b/g/n
- Channels 1 to [email protected] GHz
- Support WEP, WPA/WPA2, WPA/WPA2 PSK (AES), WPA3 security modes
- Up to +16 dBm output power in 802.11b mode
- Support STA/AP/STA+AP working mode
- Support SmartConfig and AP pairing manners for Android and iOS devices
- Onboard PCB antenna with a gain of 2.2 dBi
- Operating temperature: -40°C to 105°C
- Bluetooth LE connectivity
- Support the Bluetooth LE V5.2
- 6 dBm transmit power in Bluetooth mode
- Complete Bluetooth coexistence interface
- Onboard PCB antenna with a gain of 2.2 dBi

[ More T2-U module information](https://developer.tuya.com/en/docs/iot/T2-U-module-datasheet?id=Kce1tncb80ldq)
42 changes: 42 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# T2

[English](https://github.com/tuya/T2/blob/main/README.md) | 中文

**涂鸦 T2-U 开发板** 是一款专为开发者打造的智能硬件产品原型开发板。它可与其他功能电路模组或电路板配合使用,实现各种智能硬件产品的开发。涂鸦 T2-U 开发板非常易于使用,您可以利用此开发板快速实现各种智能硬件 Demo。

<img alt="image.png" src="https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/16781047011ffea0d5520.png" width="400">

## T2-U模组概述
涂鸦 T2-U 开发板主控采用涂鸦智能开发的一款嵌入式 Wi-Fi+蓝牙模组 [T2-U](https://developer.tuya.com/en/docs/iot/T2-U-module-datasheet?id=Kce1tncb80ldq)。它由一个高集成度的无线射频模组 T2-U 和外围的按键、LED 指示灯、I/O 接口、电源和 USB 转串口芯片构成。

T2-U模组 内置运行速度最高可到 120 MHz 的 32-bit MCU,内置 2Mbyte 闪存和 256 KB RAM。

### 特性

- 内置低功耗 32 位 CPU,可以兼作应用处理器
- 主频支持 120MHz
- 工作电压:3.0V-3.6V
- 外设:
- 6×PWM
- 4xTimer
- 2×UART
- 1×SPI
- 2xI2C
- 1xADC
- 19xGPIO
- Wi-Fi 连通性
- 802.11 b/g/n
- 通道[email protected]
- 支持 WEP、WPA/WPA2、WPA/WPA2 PSK (AES) 和 WPA3 安全模式
- 802.11b 模式下最大 +16dBm 的输出功率
- 支持 STA/AP/STA+AP 工作模式
- 支持 SmartConfig 和 AP 两种配网方式(包括 Android 和 iOS 设备)
- 板载 PCB 天线,天线峰值增益 2.2dBi
- 工作温度:-40℃ 到 105℃
- 蓝牙连通性
- 低功耗蓝牙 V5.2 完整标准
- 蓝牙模式支持 6 dBm 发射功率
- 完整的蓝牙共存接口
- 板载 PCB 天线,天线峰值增益 2.2dBi

[更多T2-U模组资料](https://developer.tuya.com/cn/docs/iot/T2-U-module-datasheet?id=Kce1tncb80ldq)
52 changes: 52 additions & 0 deletions beken_os/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
OS := $(shell uname)

GREEN := \033[0;32m
RED := \033[0;31m
NC := \033[0m # No Color
ifeq ($(findstring bash, $(shell readlink $(SHELL))), bash)
ECHO = echo -e
else
ECHO = echo
endif

GIT_VERSION := $(shell git describe --tags --dirty=-Dev)
ARM_GCC_TOOLCHAIN = ../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin

CROSS_COMPILE = $(ARM_GCC_TOOLCHAIN)/arm-none-eabi-
.config: beken378/app/config/sys_config.h
@echo 'GEN .config'
@-rm -f $@
@echo '#include "beken378/app/config/sys_config.h"' > config.c
@sed -n '/^#define/p' beken378/app/config/sys_config.h | awk '{print $$2}' | sort -d | uniq | awk '{print "valueOf_"$$1"="$$1}' >> config.c
@echo "# Autogenerated by Makefile, DON'T EDIT" > .config
@$(ARM_GCC_TOOLCHAIN)/arm-none-eabi-gcc -E -I ../../../sdk/include/ config.c | grep '^valueOf_' | sed 's/valueOf_//' >> .config
@sed -i '/_SYS_CONFIG_H_/d' .config
@-rm -f config.c

.PHONY: mp
mp: .config
@$(MAKE) -f application.mk CFG_GIT_VERSION=\"$(GIT_VERSION)\"

all: .config
@$(MAKE) -f application.mk CFG_GIT_VERSION=\"$(GIT_VERSION)\"

.PHONY: beken
beken: .config
@$(MAKE) -f application.mk application

.PHONY: clean
clean:
@$(MAKE) -f application.mk clean

.PHONY: flash debug ramdebug setup
setup:
@$(MAKE) -f application.mk $(MAKECMDGOALS)

flash: toolchain
@$(MAKE) -f application.mk flashburn

debug: toolchain
@$(MAKE) -f application.mk debug

ramdebug: toolchain
@$(MAKE) -f application.mk ramdebug
Loading

0 comments on commit 20e4d35

Please sign in to comment.