init
This commit is contained in:
parent
cd3ccce807
commit
ecfb540ed3
17
.gitattributes
vendored
17
.gitattributes
vendored
@ -1,17 +0,0 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
12
.github/FUNDING.yml
vendored
Normal file
12
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: qitas
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
107
.github/workflows/CI.yml
vendored
Normal file
107
.github/workflows/CI.yml
vendored
Normal file
@ -0,0 +1,107 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# on:
|
||||
# push:
|
||||
# paths:
|
||||
# - 'src/**'
|
||||
# pull_request:
|
||||
# paths:
|
||||
# - 'src/**'
|
||||
|
||||
jobs:
|
||||
CodeCheck:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
fetch-depth: 1
|
||||
|
||||
- name: cppcheck
|
||||
uses: Qful/check-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.SOC_XIN_TOCKEN }}
|
||||
enable: all
|
||||
inconclusive: disable
|
||||
inline_suppression: disable
|
||||
force_language: c
|
||||
force: enable
|
||||
max_ctu_depth: 2
|
||||
std: c11
|
||||
output_file: ./codecheck.txt
|
||||
other_options: --bug-hunting --verbose --std=c11
|
||||
|
||||
- name: report
|
||||
uses: Qful/check-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.SOC_XIN_TOCKEN }}
|
||||
BRANCH_NAME: 'master'
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: code_check_report
|
||||
path: codecheck.txt
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install
|
||||
working-directory: project
|
||||
run: |
|
||||
sudo apt-get install gcc-arm-none-eabi -y
|
||||
|
||||
- name: Build
|
||||
if: success()
|
||||
working-directory: project/gcc
|
||||
run: |
|
||||
make
|
||||
|
||||
# - name: Download
|
||||
# working-directory: src
|
||||
# run: |
|
||||
# wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
|
||||
# tar -xf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
|
||||
|
||||
# - name: Build
|
||||
# working-directory: src
|
||||
# run: |
|
||||
# mkdir build && cd build
|
||||
# # cmake -DMCU_TYPE=MM32F031 -D CROSS_COMPILER_PATH=../gcc-arm-none-eabi-10-2020-q4-major .. && make
|
||||
# # mkdir -p ./output && cp *.elf "$_"
|
||||
# # make clean
|
||||
|
||||
# - name: Build
|
||||
# working-directory: src
|
||||
# run: |
|
||||
# mkdir build && cd build
|
||||
# cmake -DMCU_TYPE=MM32F031 -D CROSS_COMPILER_PATH=../gcc-arm-none-eabi-10-2020-q4-major ..
|
||||
|
||||
# - name: output
|
||||
# run: |
|
||||
# mkdir src/output
|
||||
|
||||
# - name: Action build
|
||||
# uses: Qful/cmake-action@master
|
||||
# with:
|
||||
# source-dir: src
|
||||
# build-dir: src/output
|
||||
# parallel: 8
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: firmware
|
||||
path: project/gcc/obj
|
17
README.md
17
README.md
@ -3,10 +3,10 @@
|
||||
[![sites](http://182.61.61.133/link/resources/SoC.png)](http://www.SoC.Xin)
|
||||
|
||||
#### [Vendor](https://github.com/SoCXin/Vendor):[WCH](http://www.wch.cn/)
|
||||
#### [Core](https://github.com/SoCXin/8051):[E8051](https://github.com/SoCXin/8051)
|
||||
#### [Core](https://github.com/SoCXin/8051):[8051](https://github.com/SoCXin/8051)
|
||||
#### [Level](https://github.com/SoCXin/Level):24MHz
|
||||
|
||||
## [CH552简介](https://github.com/SoCXin/CH552/wiki)
|
||||
## [简介](https://github.com/SoCXin/CH552/wiki)
|
||||
|
||||
[CH552](https://github.com/SoCXin/CH552) 兼容MCS51的增强型E8051内核,79%指令是单字节单周期指令,2KB BootLoader + 14KB Flash,1K xRAM(支持DMA) +256B iRAM,128B DataFlash。
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
#### 关键特性
|
||||
|
||||
* 5V->3.3V LDO
|
||||
* 内置2KB BootLoader,支持USB和串口ISP,提供ISP下载库
|
||||
* 2KB BootLoader,支持USB和串口ISP
|
||||
* Type-C 主从检测
|
||||
* USB全速设备模式
|
||||
* USB device fs
|
||||
* UART x 2 + SPI x 1
|
||||
* 小封装 (TSSOP20/SOP16/MSOP10/QFN16)
|
||||
|
||||
@ -31,11 +31,10 @@
|
||||
|
||||
### [选型建议](https://github.com/SoCXin)
|
||||
|
||||
[CH552](https://github.com/SoCXin/CH552) 是市场上高性价比USB单片机,在开源社区中拥有较高声望。
|
||||
[CH552](https://github.com/SoCXin/CH552) 在8051领域拥有较高的声望,低阶高性价比USB单片机。
|
||||
|
||||
同系列中升级[CH554](http://www.wch.cn/products/CH554.html)将增加支持USB HOST主机模式
|
||||
所属同系列中[CH554](https://github.com/SoCXin/CH554) 增加支持USB HOST主机模式。[CH551](http://www.wch.cn/products/CH551.html)的ROM降为10K,片内xRAM为512字节,异步串口仅提供UART0,仅SOP16封装,并且去掉了ADC模数转换模块和USB type-C模块。
|
||||
|
||||
降低规格可选[CH551](http://www.wch.cn/products/CH551.html),ROM降为10K,片内xRAM为512字节,异步串口仅提供UART0,仅SOP16封装,并且去掉了ADC模数转换模块和USB type-C模块。
|
||||
|
||||
### [www.SoC.xin(芯)](http://www.SoC.Xin)
|
||||
相较[STM8S003](https://github.com/SoCXin/STM8S003) 及 [N76E003](https://github.com/SoCXin/N76E003) 系列产品,[CH552](https://github.com/SoCXin/CH552)缺少IIC硬件,ADC较弱,没有专门的 eeprom存储器。TSSOP20封装不兼容前两者,无法直接替换。
|
||||
|
||||
### [探索芯世界 www.SoC.xin](http://www.SoC.Xin)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name":"CH552",
|
||||
"series":["CH552","CH551"],
|
||||
"series":["CH552P","CH552T","CH552E","CH552G","CH551G"],
|
||||
"type":"MCU",
|
||||
"Core":"MCS51",
|
||||
"Freq":"24MHz",
|
||||
|
Loading…
Reference in New Issue
Block a user