Use panic-semihosting, fix ui-tests

This commit is contained in:
Henrik Tjäder 2021-03-03 09:48:54 +01:00
parent 612bb60ac6
commit 6d7da143ac
15 changed files with 13 additions and 32 deletions

View file

@ -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]

View file

@ -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 {

View file

@ -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 ()>,

View file

@ -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!

View file

@ -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;

View file

@ -5,7 +5,7 @@
#![no_main]
#![no_std]
use panic_halt as _;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
const APP: () = {

View file

@ -3,7 +3,7 @@
#![no_main]
#![no_std]
use panic_halt as _;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
const APP: () = {

View file

@ -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: () = {

View file

@ -5,7 +5,7 @@
use core::marker::PhantomData;
use panic_halt as _;
use panic_semihosting as _;
pub struct NotSend {
_0: PhantomData<*const ()>,

View file

@ -5,7 +5,7 @@
#![no_main]
#![no_std]
use panic_halt as _;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
const APP: () = {

View file

@ -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)]

View file

@ -5,7 +5,7 @@
#![no_main]
#![no_std]
use panic_halt as _;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
const APP: () = {

View file

@ -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`.

View file

@ -1,7 +1,5 @@
#![no_main]
use rtic::app;
#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]

View file

@ -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