Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge upstream #75

Merged
merged 447 commits into from
Jan 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
3acc2b2
Tweak testing cargo-binutils
winksaville Feb 8, 2021
b2fa21c
Merge #297
bors[bot] Feb 8, 2021
2874f35
Fix installing dateutil since it is now a dependency of the GHP impor…
eldruin Feb 8, 2021
79ed05f
Merge #298
bors[bot] Feb 8, 2021
e6e819d
New-06-hello-world
winksaville Feb 5, 2021
af8bb1a
Tweak panic.md
winksaville Feb 9, 2021
40a6309
Merge #299
bors[bot] Feb 9, 2021
ec78491
add two notes flagging lsm303agr
waalge Feb 11, 2021
34becce
Merge #300
bors[bot] Feb 11, 2021
c241dea
fix typo, link
leetie Feb 12, 2021
102d90d
Merge #301
bors[bot] Feb 12, 2021
d5e17f5
Tweak 05-led-roulette
winksaville Feb 5, 2021
6a791e0
Merge #302
bors[bot] Feb 13, 2021
cdf6be7
New 07 Registers
winksaville Feb 24, 2021
f613e7a
Updates from eldruin first review
winksaville Feb 25, 2021
33aa012
Fix broken ci build
winksaville Feb 26, 2021
d074114
Merge #303
bors[bot] Feb 28, 2021
53b0081
Update-03-setting-up-a-dev-env
winksaville Feb 28, 2021
8ea5d2c
Merge #304
bors[bot] Feb 28, 2021
243db15
Update 05 led-roulette
winksaville Mar 1, 2021
bf1049e
Use nano as the editor
winksaville Mar 2, 2021
ce4cf5d
Add Update .cargo/config sub-section
winksaville Mar 2, 2021
bb43664
Merge #305
bors[bot] Mar 2, 2021
58d8c30
temporary fix for CI until we rewrite this chapter
hargoniX Mar 4, 2021
edae2af
Merge #277
bors[bot] Mar 4, 2021
a663f8e
Increase Travis no-output waiting time
eldruin Mar 8, 2021
f9491d5
Merge #310
bors[bot] Mar 8, 2021
4d57c9a
Add shareable instances of config.toml and openocd.gdb
winksaville Mar 4, 2021
0da0f43
Merge #308
bors[bot] Mar 9, 2021
1fdb1c9
Update 06-hello-world to use shared cargo config
winksaville Mar 5, 2021
bc34d73
Merge #309
bors[bot] Mar 9, 2021
681b95a
Swap to GHA.
adamgreig Mar 10, 2021
0b225b6
Merge #311
bors[bot] Mar 10, 2021
c8f6af4
Swap to GHA.
adamgreig Mar 10, 2021
925caa4
Adapt to rewrite
eldruin Mar 11, 2021
16aa711
Merge #312
bors[bot] Mar 12, 2021
961f6aa
Update send-a-string.md
NisarAbbasi1978 Mar 22, 2021
5cf2fb4
Merge #315
bors[bot] Mar 22, 2021
ae4bd85
Remove several chapters as decided with @eldruin
hargoniX Mar 27, 2021
94c77db
remove removed chapters from Cargo.toml
hargoniX Mar 27, 2021
46a1aa3
Change the introduction of I2C to match the micro:bit
hargoniX Mar 27, 2021
2c429b3
Modify the LSM303AGR section of the I2C chapter for micro:bit
hargoniX Mar 27, 2021
22775ae
move 14-i2c to 08-i2c
hargoniX Mar 27, 2021
33c508a
Fix the CI for I2C
hargoniX Mar 27, 2021
c7875f4
Update flash-it.md
D4ntin Mar 29, 2021
e191b36
Merge #317
bors[bot] Mar 29, 2021
6b707db
Fix small typo in Linux setup
J3RN Apr 7, 2021
5747303
Merge #318
bors[bot] Apr 7, 2021
fb2ec31
the rest of I2C without my solution
hargoniX Apr 10, 2021
e5f94a0
Fix breaking change in cortex-m 0.5.11.
wpd Apr 23, 2021
574029e
Cleanup from review comments -- use cortex-m 0.5.6 in chapters 14 & 15
wpd Apr 25, 2021
3132ecd
Merge #328
bors[bot] Apr 27, 2021
a4e2d71
Apply suggestions from code review
hargoniX May 5, 2021
8de244f
Fixes and I2C challenge solution
hargoniX May 5, 2021
2f17e5a
Update src/08-i2c/using-a-driver.md
hargoniX May 5, 2021
6ee07a4
Attempt to fix the build
hargoniX May 6, 2021
ea25084
change bors.toml to match the new chapters
hargoniX May 7, 2021
b2d62d8
Merge #316
bors[bot] May 7, 2021
eeee01f
Fixed typos regarding `.cargo/config.toml`
rdelfin May 11, 2021
3bd8d7b
fix typo
dzvon May 25, 2021
b877f28
Update README.md
dzvon May 25, 2021
b6b9054
Fix compile error
dzvon May 26, 2021
c44e72c
Merge #341
bors[bot] May 29, 2021
41d904f
Merge branch 'rust-embedded:master' into patch-1
dzvon May 31, 2021
cc254bb
Merge #339
bors[bot] May 31, 2021
df0e7e4
Clean up warning on unused result
sirhcel May 30, 2021
27e1439
Merge #343
bors[bot] May 31, 2021
de5ff55
Remove unused panic handlers (panic-halt)
sirhcel May 19, 2021
180b40f
Check building docs with CI too
sirhcel May 31, 2021
2ef2383
Remove exemption for print.html from link checking
sirhcel May 31, 2021
8d58e26
Clean up warning from linkchecker
sirhcel May 31, 2021
b519ee5
Merge #344
bors[bot] Jun 1, 2021
80b6761
Merge #346
bors[bot] Jun 1, 2021
2c863cf
Merge #347
bors[bot] Jun 1, 2021
8a18ebd
Merge #337
bors[bot] Jun 1, 2021
c6d363e
Update README.md: about the SB10 on old version
chirping78 Jun 8, 2021
93b0c11
Update src/06-hello-world/README.md
chirping78 Jun 8, 2021
b176768
Merge #348
bors[bot] Jun 8, 2021
6f47539
fix typos in openocd.gdb comments
Jonahss Jun 13, 2021
6b46f6c
Merge #349
bors[bot] Jun 17, 2021
ab8006f
fix bsrr in rtrm.md
NitinSaxenait Jun 21, 2021
72ddb78
Fix typo
eldruin Jun 21, 2021
74aa554
Merge #352
bors[bot] Jun 21, 2021
35a12c9
Clean up writing to USART TDR which is safe is again
sirhcel Jun 5, 2021
7adf9b9
Update PAC and GPIO usage for upcomming PAC/HAL
sirhcel Jun 5, 2021
ff0374b
Update using Serial to upcoming changes from more-tests
sirhcel Jun 7, 2021
814c051
Add local MonoTimer replacement
sirhcel Jun 13, 2021
aeab303
Bump BSP to latest release fixing TDR access
sirhcel Jun 20, 2021
99b173b
Bump other dependencies of 11-usart
sirhcel Jun 20, 2021
b0f3510
Factor out 11-usart example code to included files
sirhcel Jun 21, 2021
40ff11e
Make 11-usart example code safe again
sirhcel Jun 21, 2021
d5d95e1
Clean up warnings about unused variables
sirhcel Jun 21, 2021
0aa730d
Bump heapless to latest release
sirhcel Jun 21, 2021
9655eef
Mention newer Rust version required by 11-usart
sirhcel Jun 21, 2021
2b73ce6
Merge #354
bors[bot] Jun 21, 2021
2bc7ccb
Build examples in CI as well
adamgreig Jun 21, 2021
0216f34
Merge #355
bors[bot] Jun 22, 2021
5607a83
Factor out 05-led-roulette examples
sirhcel Jun 22, 2021
92567a1
Bump dependencies of 05-led-roulette
sirhcel Jun 22, 2021
c9ddb5a
Fix debug example to actually show led-roulette
sirhcel Jun 22, 2021
9ddf396
Fix some flaws in the "LED roulette" section
SimplyDanny Apr 30, 2021
25893cb
Use an en dash instead of a simple hyphen
SimplyDanny May 1, 2021
0c27f74
Guide to disussions and issues in README.md
sirhcel Jul 11, 2021
b3d8a19
Wording changes to new discussions section in README
adamgreig Jul 11, 2021
5f0f05a
Merge #363
bors[bot] Jul 11, 2021
a281bcf
Merge #362
bors[bot] Jul 11, 2021
0f2e32f
Fix instructions for installting GDB on Fedora
sirhcel Jul 11, 2021
79fe204
Merge #367
bors[bot] Jul 11, 2021
8819f97
Rewrite of chapter 2 for microbit v2
hargoniX Jul 14, 2021
4b14ed7
Fix broken links
hargoniX Jul 14, 2021
86b505e
Chapter 3 rewrite for micro:bit v2
hargoniX Jul 14, 2021
6987b01
Fix typo in 05-led-roulette/the-challenge
WaffleLapkin Jul 15, 2021
7c9416a
Merge #373
bors[bot] Jul 15, 2021
16ccce6
Chapter 4 micro bit v2 rewrite
hargoniX Jul 15, 2021
3fe6219
Update Fedora and Linux verification steps
anthonyjmartinez Jul 15, 2021
e7c5527
Merge #376
bors[bot] Jul 15, 2021
0eaee62
Merge #372
bors[bot] Jul 16, 2021
6d92ee4
8.3: Use `write` instead of `modify`
WaffleLapkin Jul 16, 2021
9a9f694
Merge #377
bors[bot] Jul 16, 2021
6863a99
Precise version specification of the v1 microbit
hargoniX Jul 17, 2021
abaf165
Merge #371
bors[bot] Jul 17, 2021
126f995
Merge #375
bors[bot] Jul 17, 2021
7a18842
Add a terminology explanation section to ch4
hargoniX Jul 17, 2021
e2f6aa4
Apply suggestions from code review
hargoniX Jul 18, 2021
1c80b39
Attempt to split the sentence up a bit
hargoniX Jul 18, 2021
22fae2b
Merge #378
bors[bot] Jul 19, 2021
43e0f29
ch05 ch06 rewrite for micro:bit v2
hargoniX Jul 18, 2021
01497e5
Fix CI for rewrite
hargoniX Jul 23, 2021
4b11b99
Install the proper toolchain for older variants
hargoniX Jul 23, 2021
2d64a49
I just shouldn't have touched toolchains...
hargoniX Jul 23, 2021
fe73a56
Apply suggestions from code review
hargoniX Jul 23, 2021
3ff772e
Update src/05-led-roulette/flash-it.md
hargoniX Jul 23, 2021
9af3afe
Adopt bors to the new CI
hargoniX Jul 23, 2021
e2c3ea0
Merge branch 'rewrite-v2-ch5' of github.com:rust-embedded/discovery i…
hargoniX Jul 23, 2021
80a4bf0
Merge #381
bors[bot] Jul 23, 2021
6d0ecc0
Fix typo in openocd.gdb
TASSDevon Jul 28, 2021
94a95b8
Merge #384
bors[bot] Jul 28, 2021
554d02b
Merge #332
bors[bot] Aug 8, 2021
b554e78
serial chapter first steps
hargoniX Aug 14, 2021
256af47
Initial subchapter of ch07
hargoniX Aug 14, 2021
6769601
Rest of ch07
hargoniX Aug 14, 2021
ea1cec2
Restore the old main
hargoniX Aug 14, 2021
afeef71
Unsafe is fine since we need it for statics
hargoniX Aug 14, 2021
d9a7b8a
Flush
hargoniX Aug 14, 2021
8d3a16a
Build ch07 the right way in CI
hargoniX Aug 14, 2021
1e0f483
Initial ch08 code and documentation
hargoniX Aug 14, 2021
6508d04
First micro:bit v2 version of ch08
hargoniX Aug 14, 2021
ac6cc97
Unsafe code for the v2 wrapper
hargoniX Aug 14, 2021
ac7d7c8
Fix the CI for ch08
hargoniX Aug 14, 2021
e41cac9
Fix the ci for ch07
hargoniX Aug 14, 2021
090cb63
WIP ch09
hargoniX Aug 21, 2021
be2bf74
Add a ton of new links to what's left to explore
hargoniX Aug 21, 2021
0401d2a
Update the troubleshooting section for micro:bit
hargoniX Aug 21, 2021
b39790b
Add remark about Awesome Rust Embedded
hargoniX Aug 21, 2021
c0fe393
Update microbit to upstream git version
hargoniX Aug 22, 2021
0a5a40a
Update to upstream git version of microbit
hargoniX Aug 22, 2021
bbc265a
Next compass attempt
hargoniX Aug 22, 2021
a56ae98
Fix the CI
hargoniX Aug 22, 2021
ca5d5fb
Fix i2c link
hargoniX Aug 22, 2021
8560d27
This note is wrong
hargoniX Aug 22, 2021
1832d57
Update src/appendix/1-general-troubleshooting/README.md
eldruin Aug 24, 2021
ab771f7
Merge #394
bors[bot] Aug 24, 2021
96b457b
Merge #393
bors[bot] Aug 24, 2021
01d4e94
Update the-general-protocol.md
al-jshen Aug 24, 2021
9bf9e5a
Merge #396
bors[bot] Aug 24, 2021
8d9be97
Chapter 10
hargoniX Aug 24, 2021
6389583
Apply suggestions from code review
hargoniX Aug 25, 2021
c955778
Apply suggestions from code review
hargoniX Aug 25, 2021
840689e
Apply suggestions from code review
hargoniX Aug 25, 2021
f45c7ec
Apply suggestions from code review
hargoniX Aug 25, 2021
00d4a43
Apply suggestions from code review
hargoniX Aug 25, 2021
c94823e
Merge #397
bors[bot] Aug 25, 2021
853a67b
Add link to the twim module
hargoniX Aug 25, 2021
7cb8c02
Merge branch 'rewrite' into rewrite-ch07-v2
hargoniX Aug 25, 2021
0e6d924
Merge #390
bors[bot] Aug 25, 2021
a12b8d1
Merge branch 'rewrite' into rewrite-ch08-v2
hargoniX Aug 25, 2021
c9f0436
Merge #391
bors[bot] Aug 25, 2021
917595f
Use `cargo embed` instead of `cargo-embed`
caemor Aug 31, 2021
11c0cd5
Merge #400
bors[bot] Aug 31, 2021
09eccbc
Add rustup target add to verification step and modify c5 slightly
caemor Sep 1, 2021
2763b94
Merge #402
bors[bot] Sep 1, 2021
63ff549
Typos and grammar changes
robyoung Sep 11, 2021
090bab7
Make terminology parts sub-sections
robyoung Sep 11, 2021
f2e1ad5
Merge #404
bors[bot] Sep 11, 2021
cc41aa6
Merge #403
bors[bot] Sep 11, 2021
5a7bc72
Calibration implementation and the rest of ch09
hargoniX Aug 29, 2021
26b3583
Update src/09-led-compass/magnitude.md
hargoniX Sep 13, 2021
023318a
Add note about libm sqrtf function.
hargoniX Sep 13, 2021
ff85b9f
Merge branch 'rewrite' into rewrite-ch09
hargoniX Sep 13, 2021
3d99ca6
Fix minor typo in Ch 6 documentation
skaiser Sep 14, 2021
10d57b4
Merge #405
bors[bot] Sep 14, 2021
757d2fb
Fix typo in Chapter 8 text
skaiser Sep 17, 2021
ac081ca
Merge #406
bors[bot] Sep 17, 2021
d92317c
Clarify the units
hargoniX Sep 19, 2021
3391168
update the git microbit versions to 0.11
hargoniX Sep 19, 2021
8b04392
Update the lsm303agr version
hargoniX Sep 21, 2021
7319fd9
Merge #395
bors[bot] Sep 22, 2021
00d51c1
Update dependencies and remove unused ones
hargoniX Sep 27, 2021
ce7dd67
Update versions of links
hargoniX Sep 27, 2021
88490c1
Quote all modules
hargoniX Sep 27, 2021
a8d6b49
Fix the ls command in 03-setup/verify.md
hargoniX Sep 27, 2021
f83fedb
Uniform delay types
hargoniX Sep 27, 2021
fd71ba1
fixing dependency changes
hargoniX Nov 12, 2021
9b3004d
Merge #407
bors[bot] Nov 12, 2021
687e02c
Move existing discovery book into f3discovery subfolder.
adamgreig Nov 18, 2021
f50a461
Merge `rewrite` branch.
adamgreig Nov 18, 2021
393684f
Move new microbit book into its own directory
adamgreig Nov 18, 2021
cb2bfa0
Strip some README cruft from new front page.
adamgreig Nov 18, 2021
678fdee
Fix GHA
adamgreig Nov 18, 2021
8e41b99
Copy missing image assets to microbit from f3discovery
adamgreig Nov 18, 2021
5e94545
Fix cargo-doc run for micro:bit
adamgreig Nov 18, 2021
bfd812b
Death to all typos
hargoniX Nov 26, 2021
a3fe9da
Death to the rest of the typos
hargoniX Nov 26, 2021
8d9d669
Clarify README.md
hargoniX Nov 26, 2021
447c08f
Clarify how to search for HAL crates
hargoniX Nov 26, 2021
2c309c9
Direct HAL list link
hargoniX Nov 26, 2021
75abcd7
Link to an RTOS list
hargoniX Nov 26, 2021
3ef4c44
Look!
hargoniX Nov 28, 2021
f253abe
Only use one panic implementation at a time in led roulette.
hargoniX Dec 7, 2021
dfe8c4a
Fix bors CI status names
adamgreig Dec 7, 2021
9f96afb
Add build-doc CI runs to bors too
adamgreig Dec 7, 2021
c99905c
Merge #414
bors[bot] Dec 7, 2021
a0abaf7
fix typos in background(README.md)
NitinSaxenait Dec 13, 2021
4b5e5c7
Merge #417
bors[bot] Dec 13, 2021
a1518da
Fix broken link to c3
caemor Dec 15, 2021
c1968da
Update debug-it.md
caemor Dec 16, 2021
6045382
Fix Readme/index issue for link
caemor Dec 16, 2021
2669f78
Merge #418
bors[bot] Dec 16, 2021
0c92f4f
Use specific chip for micro:bit v1 board.
gcapell Dec 30, 2021
657f0dd
Fix typo in verify.md: nrf51822-xxAA -> nrf51822_xxAA
gcapell Dec 30, 2021
0dfd4a5
Merge #422
bors[bot] Dec 30, 2021
0684d8d
Fix micro:bit V1 chip specification everywhere
eldruin Dec 30, 2021
20e1262
Merge #423
bors[bot] Dec 30, 2021
29e694a
Update micro:bit chip descriptions in the book
eldruin Dec 30, 2021
05b9ccd
Merge #424
bors[bot] Dec 30, 2021
076a537
In serial communication chapter, point to location of serial device f…
gcapell Dec 31, 2021
c754d10
Merge #426
bors[bot] Jan 1, 2022
fd60c5c
Use more specific chip spec for micro:bit v2
eldruin Jan 3, 2022
1d637ef
Run cargo-doc on relevant target instead of native
adamgreig Jan 3, 2022
c6fd3ab
Merge #428
bors[bot] Jan 3, 2022
3b0bd96
Merge #427
bors[bot] Jan 3, 2022
4aa07bf
Fixed "cargo size" argument
dobromyslov Jan 11, 2022
8b6953b
Merge #430
bors[bot] Jan 11, 2022
f835b7c
Added a screenshot for PuTTY
dobromyslov Jan 12, 2022
33dc168
Improved PuTTY configuration
dobromyslov Jan 12, 2022
ccfd73c
Show changed PuTTY setting
dobromyslov Jan 12, 2022
7050638
Merge #431
bors[bot] Jan 12, 2022
e599a14
Update reverse-a-string.md
dkhayes117 Jan 15, 2022
6e5f556
Merge #432
bors[bot] Jan 15, 2022
19f189b
Merge remote-tracking branch 'upstream/master' into upstream/merge
tomoyuki-nakabayashi Jan 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 19 additions & 1 deletion .github/bors.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
block_labels = ["needs-decision"]
delete_merged_branches = true
required_approvals = 1
status = ["continuous-integration/travis-ci/push"]
status = [
"build-book",
"build-f3discovery-doc",
"build-f3discovery-chapter (05-led-roulette)",
"build-f3discovery-chapter (06-hello-world)",
"build-f3discovery-chapter (07-registers)",
"build-f3discovery-chapter (08-leds-again)",
"build-f3discovery-chapter (09-clocks-and-timers)",
"build-f3discovery-chapter (11-usart)",
"build-f3discovery-chapter (14-i2c)",
"build-f3discovery-chapter (15-led-compass)",
"build-f3discovery-chapter (16-punch-o-meter)",
"build-microbit-doc",
"build-microbit-chapter (05-led-roulette)",
"build-microbit-chapter (07-uart)",
"build-microbit-chapter (08-i2c)",
"build-microbit-chapter (09-led-compass)",
"build-microbit-chapter (10-punch-o-meter)",
]
164 changes: 164 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
name: CI

on:
push:
branches: [ staging, trying, master ]
pull_request:

jobs:
# Check build succeeds for each f3discovery chapter containing example code.
build-f3discovery-chapter:
runs-on: ubuntu-20.04
strategy:
matrix:
chapter:
- 05-led-roulette
- 06-hello-world
- 07-registers
- 08-leds-again
- 09-clocks-and-timers
- 11-usart
- 14-i2c
- 15-led-compass
- 16-punch-o-meter
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
- name: Build chapter
working-directory: f3discovery/src/${{ matrix.chapter }}
run: cargo build --target thumbv7em-none-eabihf
- name: Build chapter examples
working-directory: f3discovery/src/${{ matrix.chapter }}
run: cargo build --target thumbv7em-none-eabihf --examples

# Check build succeeds for f3discovery docs.
build-f3discovery-doc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
- name: Build docs
run: cargo doc --target thumbv7em-none-eabihf
working-directory: f3discovery

# Check a build succeeds for each microbit chapter that contains example code.
build-microbit-chapter:
runs-on: ubuntu-20.04
strategy:
matrix:
chapter:
- 05-led-roulette
- 07-uart
- 08-i2c
- 09-led-compass
- 10-punch-o-meter
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv6m-none-eabi
- run: rustup target add thumbv7em-none-eabihf
- name: Build chapter micro:bit v1
working-directory: microbit/src/${{ matrix.chapter }}
run: cargo build --features v1 --target thumbv6m-none-eabi
- name: Build chapter micro:bit v2
working-directory: microbit/src/${{ matrix.chapter }}
run: cargo build --features v2 --target thumbv7em-none-eabihf

# Check build succeeds for microbit docs.
build-microbit-doc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv6m-none-eabi
- run: rustup target add thumbv7em-none-eabihf
- name: Build docs for micro:bit v1
run: cargo doc --features v1 --target thumbv6m-none-eabi
working-directory: microbit
- name: Build docs for micro:bit v2
run: cargo doc --features v2 --target thumbv7em-none-eabihf
working-directory: microbit

# Build the book HTML itself and optionally publish it.
build-book:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
- run: rustup target add thumbv6m-none-eabi

- name: Install Python dependencies
run: |
pip3 install --user python-dateutil linkchecker
- name: Put pip binary directory into path
run: echo "~/.local/bin" >> $GITHUB_PATH

- name: Cache Cargo installed binaries
uses: actions/cache@v1
id: cache-cargo
with:
path: ~/cargo-bin
key: cache-cargo
- name: Install mdbook
if: steps.cache-cargo.outputs.cache-hit != 'true'
uses: actions-rs/install@v0.1
with:
crate: mdbook
version: latest
- name: Copy mdbook to cache directory
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: |
mkdir ~/cargo-bin
cp ~/.cargo/bin/mdbook ~/cargo-bin
- name: Put new cargo binary directory into path
run: echo "~/cargo-bin" >> $GITHUB_PATH

- name: Build f3discovery book
working-directory: f3discovery
run: mkdir target && mdbook build
- name: Check microbit links
working-directory: f3discovery
run: linkchecker --ignore-url "print.html" book

- name: Build microbit book
working-directory: microbit
run: mkdir target && mdbook build
- name: Check microbit links
working-directory: microbit
run: linkchecker --ignore-url "print.html" book

- name: Build front page
run: mdbook build
- name: Check links
run: linkchecker book

- name: Collect books
run: |
mv f3discovery/book book/f3discovery
mv microbit/book book/microbit
- name: Deploy book
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book
force_orphan: true
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@
# `Discovery`

> Discover the world of microcontrollers through Rust
Discover the world of microcontrollers through [Rust](https://www.rust-lang.org/)!

There are currently two versions of this book. Both of them provide an
introduction to microcontrollers and how to use Rust with them.
The first is older and uses an F3 Discovery circuit board, while
the second is newer and uses a micro:bit circuit board instead.

- Read the newer book, using a micro:bit:
https://docs.rust-embedded.org/discovery/microbit
- Read the older book, using an F3 discovery board:
https://docs.rust-embedded.org/discovery/f3discovery
- Start working on the examples from this repository
- You've got questions?
- Have a look at our [discussions section on
GitHub](https://github.com/rust-embedded/discovery/discussions)
- Maybe it has already been answered
- If not, start a new discussion
- You've found an issue?
- Have a look at our [issues on
GitHub](https://github.com/rust-embedded/discovery/issues)
- Maybe there is already a workaround
- If not, please open a new one - or even better - a [pull
request](https://github.com/rust-embedded/discovery/pulls) for solving
it
- Have fun and enjoy!

This project is developed and maintained by the [Resources team][team].

Expand Down
21 changes: 0 additions & 21 deletions ci/after-success.sh

This file was deleted.

23 changes: 0 additions & 23 deletions ci/install.sh

This file was deleted.

69 changes: 0 additions & 69 deletions ci/script.sh

This file was deleted.

File renamed without changes.
9 changes: 9 additions & 0 deletions f3discovery/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[book]
title = "Discovery"
description = "Discover the world of microcontrollers through Rust"
author = "Rust Embedded Resources Team"
language = "en"

[output.html]
additional-css = ["custom.css"]
git-repository-url = "https://github.com/rust-embedded/discovery/"
6 changes: 6 additions & 0 deletions f3discovery/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Add this style to the image if it's unreadable
when the dark theme is applied */
img.white_bg {
background-color: white;
padding: 1em;
}
11 changes: 11 additions & 0 deletions f3discovery/src/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.thumbv7em-none-eabihf]
runner = "arm-none-eabi-gdb -q"
# runner = "gdb-multiarch -q"
# runner = "gdb -q"
rustflags = [
"-C", "link-arg=-Tlink.x",
]

[build]
target = "thumbv7em-none-eabihf"

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ better off starting with the [quickstart] project template.

異なる開発ボードを持っていたり、自分を初心者とは考えていない場合は、[quickstart]プロジェクトテンプレートから始めた方が良いでしょう。

[quickstart]: https://docs.rs/cortex-m-quickstart
[quickstart]: https://rust-embedded.github.io/cortex-m-quickstart/cortex_m_quickstart/
Loading