├── .bookignore
├── .gitignore
├── .markdownlint.json
├── .travis.yml
├── CNAME
├── LANGS.md
├── LICENSE
├── README.md
├── assets
├── arduino.png
├── css
│ └── custom_theme.css
├── dfu_zadig.png
├── examples
│ ├── XnViewMP.png
│ ├── how_to_install_dfu.png
│ ├── how_to_use_dfu.png
│ └── potplayer.png
├── favicon.ico
├── icon_sipeed.png
├── icon_sipeed2.png
├── icon_sipeed_arduino.png
├── longan_nano.jpg
├── longan_nano_pinout_v1.1.0_w5676_h4000_large.png
├── longan_pio_debug.jpg
├── pio_complie.png
├── pio_debug_longan.png
├── pio_ini_cfg.png
├── pio_install_add_gd32v_step1.png
├── pio_install_add_gd32v_step2.png
├── pio_install_add_gd32v_step3.png
├── pio_install_gd32v.png
├── pio_open_rvlink.png
├── pio_upload.png
└── sipeed_longan_logo.jpg
├── book.json
├── deploy.sh
├── en
├── README.md
├── SUMMARY.md
├── _layouts
│ └── website
│ │ ├── header.html
│ │ └── page.html
├── book.json
├── get_started
│ ├── blink.md
│ ├── debug.md
│ ├── pio.md
│ ├── rv-link.md
│ └── sipeed-debugger.md
└── styles
│ ├── website.css
│ └── website.less
├── gulpfile.js
├── index.html
├── index_zh.html
├── package.json
├── serve.sh
├── serve_daemon.sh
└── zh
├── README.md
├── SUMMARY.md
├── _layouts
└── website
│ ├── header.html
│ └── page.html
├── book.json
├── examples
├── badapple.md
└── printf.md
├── get_started
├── blink.md
├── debug.md
├── pio.md
├── rv-link.md
└── sipeed-debugger.md
└── styles
├── website.css
└── website.less
/.bookignore:
--------------------------------------------------------------------------------
1 | /config/
2 | gulpfile.js
3 | .markdownlint.json
4 | package.json
5 | .gitignore
6 | .bookignore
7 | /README.md
8 | /zh/CONTRIBUTING.md
9 | *.xlsx
10 | *.orig
11 | *.less
12 | *.ai
13 | .travis.yml
14 | deploy.sh
15 | serve.sh
16 | serve_daemon.sh
17 |
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | npm-debug.log
2 | .DS_Store
3 | node_modules/
4 | output/
5 | .vscode/
6 | _book/
7 | *.epub
8 | *.mobi
9 | serve.tmp
10 | *-lock.json
11 |
--------------------------------------------------------------------------------
/.markdownlint.json:
--------------------------------------------------------------------------------
1 | {
2 | "fenced-code-language": false,
3 | "ol-prefix": false,
4 | "line-length": false
5 | }
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - "8"
5 |
6 | # 缓存依赖
7 | cache:
8 | directories:
9 | - $HOME/.npm
10 |
11 | before_install:
12 | - export TZ='Asia/Shanghai' # 更改时区
13 |
14 | # 依赖安装
15 | install:
16 | - npm install gitbook-cli -g
17 | # 安装 gitbook 插件
18 | - gitbook install
19 |
20 | # 构建脚本
21 | script:
22 | # 自定义输出目录 gitbook build src dest
23 | - gitbook build . ./build
24 |
25 | # 分支白名单
26 | branches:
27 | only:
28 | - master # 只对 master 分支进行构建
29 | - dev
30 | - /v*.*/
31 |
32 | # # GitHub Pages 部署
33 | # deploy:
34 | # provider: pages
35 | # skip_cleanup: true
36 | # # 在项目仪表盘的 Settings -> Environment Variables 中配置
37 | # github_token: $GITHUB_TOKEN
38 | # # 将 build 目录下的内容推送到默认的 gh-pages 分支上,并不会连带 build/zh 目录一起
39 | # local_dir: build/zh
40 | # #fqdn: $CUSTOM_DOMAIN
41 | # name: $GIT_NAME
42 | # email: $GIT_EMAIL
43 | # on:
44 | # branch: master
45 |
46 | # 不使用travis的github pages构建功能,自定义脚本
47 | after_success:
48 | - bash ./deploy.sh
49 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | longan.sipeed.com
--------------------------------------------------------------------------------
/LANGS.md:
--------------------------------------------------------------------------------
1 | - [English](/en)
2 | - [中文](/zh)
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Longan board
2 | ==========
3 |
4 | Wiki for Sipeed Longan series boards.
5 |
6 |
7 |
8 | |[Read me online](https://longan.sipeed.com/en/) | [在线阅读](https://longan.sipeed.com/zh/) |
9 | | ------------------------ | ----------- |
10 |
11 | [](https://travis-ci.org/sipeed/Longan-DOC)
12 |
13 |
14 |
15 |
16 |
17 | ## Build Doc
18 |
19 |
20 | This documentation site is powered by GitBook. You can check out the online version here.
21 |
22 | You need Node.js and npm to be able to build the site.
23 |
24 | To install gitbook:
25 |
26 | ```
27 | npm install gitbook-cli -g
28 | ```
29 |
30 | Get Doc source code:
31 | ```
32 | sudo apt install git
33 | git clone https://github.com/sipeed/Longan-DOC.git
34 | ```
35 |
36 | Install gitbook plugins:
37 |
38 | ```
39 | cd Longan-DOC
40 | gitbook install
41 | ```
42 |
43 | Serve as a website:
44 |
45 | ```
46 | chmod +x serve.sh
47 | ./serve.sh
48 | ```
49 |
50 | Then visit http://localhost:4000
51 |
52 |
53 |
--------------------------------------------------------------------------------
/assets/arduino.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/arduino.png
--------------------------------------------------------------------------------
/assets/css/custom_theme.css:
--------------------------------------------------------------------------------
1 |
2 | .languages{
3 | margin-top: 50px;
4 | }
5 |
6 | .languages a{
7 | color: green;
8 | font-size: 18px;
9 | }
10 |
--------------------------------------------------------------------------------
/assets/dfu_zadig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/dfu_zadig.png
--------------------------------------------------------------------------------
/assets/examples/XnViewMP.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/examples/XnViewMP.png
--------------------------------------------------------------------------------
/assets/examples/how_to_install_dfu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/examples/how_to_install_dfu.png
--------------------------------------------------------------------------------
/assets/examples/how_to_use_dfu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/examples/how_to_use_dfu.png
--------------------------------------------------------------------------------
/assets/examples/potplayer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/examples/potplayer.png
--------------------------------------------------------------------------------
/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/favicon.ico
--------------------------------------------------------------------------------
/assets/icon_sipeed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/icon_sipeed.png
--------------------------------------------------------------------------------
/assets/icon_sipeed2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/icon_sipeed2.png
--------------------------------------------------------------------------------
/assets/icon_sipeed_arduino.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/icon_sipeed_arduino.png
--------------------------------------------------------------------------------
/assets/longan_nano.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/longan_nano.jpg
--------------------------------------------------------------------------------
/assets/longan_nano_pinout_v1.1.0_w5676_h4000_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/longan_nano_pinout_v1.1.0_w5676_h4000_large.png
--------------------------------------------------------------------------------
/assets/longan_pio_debug.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/longan_pio_debug.jpg
--------------------------------------------------------------------------------
/assets/pio_complie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_complie.png
--------------------------------------------------------------------------------
/assets/pio_debug_longan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_debug_longan.png
--------------------------------------------------------------------------------
/assets/pio_ini_cfg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_ini_cfg.png
--------------------------------------------------------------------------------
/assets/pio_install_add_gd32v_step1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_install_add_gd32v_step1.png
--------------------------------------------------------------------------------
/assets/pio_install_add_gd32v_step2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_install_add_gd32v_step2.png
--------------------------------------------------------------------------------
/assets/pio_install_add_gd32v_step3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_install_add_gd32v_step3.png
--------------------------------------------------------------------------------
/assets/pio_install_gd32v.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_install_gd32v.png
--------------------------------------------------------------------------------
/assets/pio_open_rvlink.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_open_rvlink.png
--------------------------------------------------------------------------------
/assets/pio_upload.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/pio_upload.png
--------------------------------------------------------------------------------
/assets/sipeed_longan_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sipeed/Longan-DOC/7cefd548badfca65c82ffd26442f825d0d512416/assets/sipeed_longan_logo.jpg
--------------------------------------------------------------------------------
/book.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Longan DOC",
3 | "description": "Longan documentation",
4 | "author":"sipeed",
5 | "plugins": [
6 | "my-toolbar",
7 | "-lunr",
8 | "-search",
9 | "search-title",
10 | "anchor-navigation-ex",
11 | "anchorjs",
12 | "sharing",
13 | "splitter",
14 | "edit-link",
15 | "ga",
16 | "expandable-chapters-small@git+https://github.com/sipeed/gitbook-plugin-expandable-chapters-small.git"
17 | ],
18 | "styles": {
19 | "website": "./styles/website.css"
20 | },
21 | "pluginsConfig": {
22 | "github": {
23 | "url": "https://github.com/sipeed/"
24 | },
25 | "my-toolbar": {
26 | "buttons": [
27 | {
28 | "label": "Github",
29 | "text":" ",
30 | "icon": "fa fa-github",
31 | "position": "left",
32 | "target": "_blank",
33 | "url": "https://github.com/sipeed/"
34 | }
35 | ]
36 | },
37 | "search": {
38 | "maxIndexSize": 1000000000
39 | },
40 |
41 | "lunr": {
42 | "maxIndexSize": 1000000000
43 | },
44 | "edit-link": {
45 | "base": "https://github.com/sipeed/Longan-DOC/blob/master",
46 | "label": ""
47 | },
48 | "sharing": {
49 | "douban": false,
50 | "facebook": true,
51 | "google": true,
52 | "hatenaBookmark": false,
53 | "instapaper": false,
54 | "line": false,
55 | "linkedin": false,
56 | "messenger": false,
57 | "pocket": false,
58 | "qq": false,
59 | "qzone": false,
60 | "stumbleupon": false,
61 | "twitter": true,
62 | "viber": false,
63 | "vk": false,
64 | "weibo": true,
65 | "whatsapp": false,
66 | "all": [
67 | "weibo",
68 | "facebook",
69 | "google",
70 | "twitter",
71 | "vk"
72 | ]
73 | },
74 | "anchor-navigation-ex": {
75 | "associatedWithSummary": false,
76 | "showLevel": true,
77 | "multipleH1": false,
78 | "mode": "float",
79 | "pageTop": {
80 | "showLevelIcon": true,
81 | "level1Icon": "fa fa-angle-double-right",
82 | "level2Icon": "fa fa-angle-double-right",
83 | "level3Icon": "fa fa-angle-double-right"
84 | }
85 | },
86 | "ga": {
87 | "token": "UA-119047820-3"
88 | }
89 | }
90 | }
--------------------------------------------------------------------------------
/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -o errexit -o nounset
4 |
5 | rev=$(git rev-parse --short HEAD)
6 | BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
7 | echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, BRANCH=$BRANCH"
8 | curr_branch=$TRAVIS_BRANCH
9 |
10 | cp -f index.html build/index.html
11 | cp -f assets/favicon.ico build/gitbook/images/favicon.ico
12 | cp -f assets/icon_sipeed.png build/gitbook/images/apple-touch-icon-precomposed-152.png
13 |
14 | git clone -b gh-pages https://github.com/sipeed/Longan-DOC.git ./old
15 | rm -rf ./old/.git/
16 | echo "current build branch: --$curr_branch--"
17 | if [[ "$curr_branch" == "master" ]]; then
18 | echo "master"
19 | if [[ -d './old/dev' ]]; then
20 | echo "copy dev"
21 | cp -r ./old/dev ./build/
22 | fi
23 | cd ./old
24 | v_folder=`find ./ -maxdepth 1 -name 'v*.*'`
25 | echo "version folder:$v_folder"
26 | if [[ "x$v_folder" != "x" ]]; then
27 | echo "copy version folder"
28 | cp -r $v_folder ../build/
29 | fi
30 | cd ..
31 | elif [[ "$curr_branch" == "dev" ]]; then
32 | echo "dev"
33 | rm -rf ./old/dev
34 | mkdir ./old/dev
35 | cp -r ./build/* ./old/dev
36 | rm -rf ./build
37 | mv ./old ./build
38 | else
39 | echo "not master or dev"
40 | rm -rf ./old/$curr_branch
41 | mkdir ./old/$curr_branch
42 | cp -r ./build/* ./old/$curr_branch
43 | rm -rf ./build
44 | mv ./old ./build
45 | fi
46 |
47 | cd build
48 |
49 | git init
50 |
51 | git config user.name $GIT_NAME
52 |
53 | git config user.email $GIT_EMAIL
54 |
55 | git remote add upstream "https://$GITHUB_TOKEN@github.com/sipeed/Longan-DOC.git"
56 |
57 | # comment below because we don't need history of gh-pages, and use git push --force to cover history
58 | # git fetch upstream
59 |
60 | # git reset upstream/gh-pages
61 |
62 | # echo "gprs.ai-thinker.com" > CNAME
63 |
64 | git add -A
65 |
66 | git commit -m "rebuild pages at ${rev}"
67 |
68 | git push upstream HEAD:gh-pages --force
69 |
70 |
--------------------------------------------------------------------------------
/en/README.md:
--------------------------------------------------------------------------------
1 | Longan Documentation
2 | ======
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | ## What is Longan
11 |
12 | Longan Nano is a GD32VF103CBT6 based minimal development board based on GigaDevice's latest RISC-V 32-bit core microcontroller. Convenient for students, engineers, geeks and enthusiasts to access the latest generation of RISC-V processors.
13 |
14 | In the heart of Longan Nano is a GigaDevice's GD32VF103CBT6, based on [Nucleisys](http://www.nucleisys.com/) Bumblebee kernel (support RV32IMAC instruction sets and ECLIC rapid interrupt). You can download instruction set documents here: [http://dl.sipeed.com/LONGAN/Nano/DOC/](http://dl.sipeed.com/LONGAN/Nano/DOC/).
15 |
16 | The chip has built-in 128KB Flash, 32KB SRAM, and peripherals listes below:
17 | * 4 x universal 16-bit timer
18 | * 2 x basic 16-bit timer
19 | * 1 x advanced 16-bit timer
20 | * Watchdog timer
21 | * RTC
22 | * Systick
23 | * 3 x USART
24 | * 2 x I2C
25 | * 3 x SPI
26 | * 2 x I2S
27 | * 2 x CAN
28 | * 1 x USBFS(OTG)
29 | * 2 x ADC(10 channel)
30 | * 2 x DAC
31 |
32 | Longan Nano development board is breadboard friendly. It has onboard 8M passive crystal, 32.768KHz RTC low-speed crystal, mini TF card slot, and use the latest Type-C USB interface.
33 |
34 | ## How to develop
35 |
36 | Longan Nano supports development using the VS CODE-based under PlatformIO IDE environment, supporting one-click project configuration, compilation, download and debugging. See the installation and tutorial here: [PIO configuration](./get_started/pio.md).
37 |
38 | 
39 |
40 | ## PIN Map
41 |
42 | 
43 |
--------------------------------------------------------------------------------
/en/SUMMARY.md:
--------------------------------------------------------------------------------
1 | Summary
2 | =====
3 |
4 | ## Introduction
5 |
6 | - [Introduction](README.md)
7 |
8 | ## Getting started
9 |
10 | - [PIO configuration](get_started/pio.md)
11 | - [Getting to Blinky](get_started/blink.md)
12 | - [Debugging](get_started/debug.md)
13 | - [Using Sipeed debugger](get_started/sipeed-debugger.md)
14 | - [Using RV-LINK](get_started/rv-link.md)
15 |
16 | ## Examples
17 |
18 | - [UART](examples/printf.md)
19 | - [Playing Badapple](examples/badapple.md)
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/en/_layouts/website/header.html:
--------------------------------------------------------------------------------
1 | {% extends template.self %}
2 | {% block book_header %}
3 |