mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +01:00
Merge pull request #451 from AfoHT/v0.5.x-mdbookupdate
Fix the CI tests by using latest mdbook, switching to panic-semihosting
This commit is contained in:
commit
6f0985d470
17 changed files with 19 additions and 39 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -628,9 +628,9 @@ jobs:
|
|||
run: pip install git+https://github.com/linkchecker/linkchecker.git
|
||||
|
||||
- name: mdBook Action
|
||||
uses: peaceiris/actions-mdbook@v1.1.11
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '0.3.1'
|
||||
mdbook-version: 'latest'
|
||||
|
||||
- name: Build book in English
|
||||
run: cd book/en && mdbook build
|
||||
|
@ -682,10 +682,9 @@ jobs:
|
|||
run: python -c "import sys; print(sys.version)"
|
||||
|
||||
- name: mdBook Action
|
||||
uses: peaceiris/actions-mdbook@v1.1.11
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '0.3.1'
|
||||
# mdbook-version: 'latest'
|
||||
mdbook-version: 'latest'
|
||||
|
||||
- name: Remove cargo-config
|
||||
run: rm -f .cargo/config
|
||||
|
|
|
@ -66,7 +66,6 @@ version = "0.1.0-alpha.2"
|
|||
|
||||
[dev-dependencies]
|
||||
lm3s6965 = "0.1.3"
|
||||
panic-halt = "0.2.0"
|
||||
cortex-m-semihosting = "0.3.3"
|
||||
|
||||
[dev-dependencies.panic-semihosting]
|
||||
|
|
|
@ -18,8 +18,8 @@ There is a translation of this book in [Russian].
|
|||
|
||||
This is the documentation of v0.5.x of RTIC; for the documentation of
|
||||
|
||||
* development version go [here](/dev).
|
||||
* v0.4.x go [here](/0.4).
|
||||
* development version go [here](/dev/).
|
||||
* v0.4.x go [here](/0.4/).
|
||||
|
||||
{{#include ../../../README.md:7:46}}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
use core::marker::PhantomData;
|
||||
|
||||
use cortex_m_semihosting::debug;
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
use rtic::app;
|
||||
|
||||
pub struct NotSend {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
use core::marker::PhantomData;
|
||||
|
||||
use cortex_m_semihosting::debug;
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
pub struct NotSync {
|
||||
_0: PhantomData<*const ()>,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
use cortex_m::peripheral::DWT;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
use rtic::cyccnt::{Instant, U32Ext as _};
|
||||
|
||||
// NOTE: does NOT work on QEMU!
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
use cortex_m_semihosting::debug;
|
||||
use lm3s6965::Interrupt;
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
use rtic::app;
|
||||
|
||||
pub struct MustBeSend;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
#[rtic::app(device = lm3s6965)]
|
||||
const APP: () = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
#[rtic::app(device = lm3s6965)]
|
||||
const APP: () = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
|
||||
const APP: () = {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
use core::marker::PhantomData;
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
pub struct NotSend {
|
||||
_0: PhantomData<*const ()>,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
#[rtic::app(device = lm3s6965)]
|
||||
const APP: () = {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
use rtic::cyccnt::{Instant, U32Ext as _};
|
||||
|
||||
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_halt as _;
|
||||
use panic_semihosting as _;
|
||||
|
||||
#[rtic::app(device = lm3s6965)]
|
||||
const APP: () = {
|
||||
|
|
|
@ -27,11 +27,3 @@ error[E0425]: cannot find value `FOO` in this scope
|
|||
|
|
||||
44 | FOO;
|
||||
| ^^^ not found in this scope
|
||||
|
||||
error: duplicate lang item in crate `panic_halt`: `panic_impl`.
|
||||
|
|
||||
= note: first defined in crate `std`.
|
||||
|
||||
error: duplicate lang item in crate `panic_semihosting`: `panic_impl`.
|
||||
|
|
||||
= note: first defined in crate `panic_halt`.
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#![no_main]
|
||||
|
||||
use rtic::app;
|
||||
|
||||
#[rtic::app(device = lm3s6965)]
|
||||
const APP: () = {
|
||||
#[init]
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
warning: unused import: `rtic::app`
|
||||
--> $DIR/task-priority-too-high.rs:3:5
|
||||
|
|
||||
3 | use rtic::app;
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(unused_imports)] on by default
|
||||
|
||||
error[E0080]: evaluation of constant value failed
|
||||
--> $DIR/task-priority-too-high.rs:5:1
|
||||
--> $DIR/task-priority-too-high.rs:3:1
|
||||
|
|
||||
5 | #[rtic::app(device = lm3s6965)]
|
||||
3 | #[rtic::app(device = lm3s6965)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow
|
||||
|
|
Loading…
Reference in a new issue