Commit graph

1041 commits

Author SHA1 Message Date
Henrik Tjäder
79b62797f5 Update the test suite to use mod instead of const
Changes MSRV to 1.42, failing tests updated to match 1.42.
2020-09-25 14:29:34 +00:00
Henrik Tjäder
8df2ec11b0 Examples using mod instead of const 2020-09-25 14:29:34 +00:00
bors[bot]
4d61437bb4
Merge #365
365: Regression in master on double schedule example r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2020-09-25 12:56:46 +00:00
Emil Fresk
7ff35bd041 Fixed example and v7 flag 2020-09-25 14:52:09 +02:00
bors[bot]
c054231823
Merge #366
366: Also check examples which require __v7 r=korken89 a=AfoHT

This will currently fail similarly like in #364 which affects all examples using schedule

But this is required to fully check all examples.




Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-09-25 12:43:44 +00:00
Henrik Tjäder
80b6bb9926 Also check examples which require __v7 2020-09-25 05:23:55 +00:00
Emil Fresk
21d4c15463 Merge branch 'master' into schedule_regression 2020-09-24 21:05:54 +02:00
Emil Fresk
72ba18b0e8 Regression in master on double schedule 2020-09-24 20:56:49 +02:00
bors[bot]
9a33457c82
Merge #360
360: Improved loop example docs to highlight that one cannot have empty lo… r=AfoHT a=korken89

…ops in idle

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2020-09-22 17:20:48 +00:00
Emil Fresk
e487b235eb Improved loop example docs to highlight that one cannot have empty loops in idle 2020-09-15 15:41:14 +02:00
bors[bot]
7ebdc37683
Merge #358
358: Fixed so examples do not crash in release mode r=AfoHT a=korken89

Fixes #357 

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2020-09-15 12:16:05 +00:00
Emil Fresk
413f525c93 Fixed so examples do not crash in release mode 2020-09-14 09:35:10 +02:00
bors[bot]
d4d68d9058
Merge #356
356: Rust toolchain cache breaking on version change r=korken89 a=AfoHT

There seems to be issues when Rust 1.45 is upgraded to 1.46.

```
[command]/usr/share/rust/.cargo/bin/rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/runner/.rustup

stable-x86_64-unknown-linux-gnu (directory override for '/home/runner/work/cortex-m-rtic/cortex-m-rtic')
rustc 1.45.2 (d3fb005a3 2020-07-31)
[command]/usr/share/rust/.cargo/bin/rustup toolchain install stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-08-27, rust version 1.46.0 (04488afe3 2020-08-24)
info: downloading component 'clippy'
info: downloading component 'rustfmt'
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rustfmt'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: installing component 'clippy'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'rustfmt'
info: installing component 'cargo'
info: installing component 'rust-std'
info: rolling back changes
error: could not rename component file from '/home/runner/.rustup/tmp/5ymt177yixkhb4fl_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share'
error: could not rename component file from '/home/runner/.rustup/tmp/yvk581uxohbpg7yg_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '/home/runner/.rustup/tmp/mth68dj6icrr8wix_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from '/home/runner/.rustup/tmp/ve_xiaam6y08_0nm_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc'
error: could not rename component file from '/home/runner/.rustup/tmp/p658oanwd5shnzba_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/zsh'
error: failed to install component: 'rust-std-x86_64-unknown-linux-gnu', detected conflict: '"lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0bb9b63424f4fc5d.rlib"'
##[error]The process '/usr/share/rust/.cargo/bin/rustup' failed with exit code 1

```
Note that `/home/runner/.rustup` links to `/usr/share/rust/.rustup`

Disabling the cache for rust toolchain seems to not cause this issue

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-09-08 19:07:13 +00:00
Henrik Tjäder
c0b5a88c94 Disable Rust toolchain GHA cache 2020-09-08 16:48:49 +00:00
Henrik Tjäder
0cc6d67672 Initial commit to trigger CI 2020-09-08 16:36:03 +00:00
bors[bot]
7506bd8ae0
Merge #355
355: Multi-core removal r=korken89 a=AfoHT

Dependent on https://github.com/rtic-rs/rtic-syntax/pull/27

With the same reasoning as ^^

For now the testing is done against my rtic-syntax/multiremove-branch, but before we merge it should corrected.

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-09-04 07:50:13 +00:00
Henrik Tjäder
ad2b809078 Use rtic-rs master 2020-09-04 07:32:53 +00:00
Henrik Tjäder
d2151ccbf9 Remove all of heterogeneous and homogeneous modules 2020-09-01 17:48:53 +00:00
Henrik Tjäder
d06cf91acc Remove stale code, fix comment styling 2020-09-01 17:48:53 +00:00
Henrik Tjäder
d8c9476372 Since there only will be one init/idle use .first().unwrap(), matching rtic-syntax 2020-09-01 17:48:53 +00:00
Henrik Tjäder
f151d5871c Cargo fmt 2020-09-01 14:50:06 +00:00
Henrik Tjäder
fea6d2facf Remove the multicore tests 2020-09-01 14:50:06 +00:00
Henrik Tjäder
26f19ae771 Do not test homogeneous multicore 2020-09-01 14:50:06 +00:00
Henrik Tjäder
76cf14c520 Brutally yank out multicore 2020-09-01 14:50:06 +00:00
Emil Fresk
c5e6d1fa49 Version fix 2020-08-27 15:03:15 +02:00
bors[bot]
2f1e707ddd
Merge #353
353: Preparing v0.5.5 release r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2020-08-27 12:55:31 +00:00
Emil Fresk
697ee6e14c Preparing v0.5.5 release 2020-08-27 14:53:50 +02:00
bors[bot]
e9022e186c
Merge #352
352: Reuse cortex-m r=TeXitoi a=AfoHT

Potential fix for #351

Introduced by #338 

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-08-27 12:40:45 +00:00
Henrik Tjäder
a4eb8c576c Reuse cortex-m 2020-08-27 12:33:51 +00:00
bors[bot]
312331de58
Merge #350
350: Preparing for 0.5.4 release r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2020-08-26 11:32:06 +00:00
Emil Fresk
5711a2472d Preparing for 0.5.4 release 2020-08-26 12:41:39 +02:00
bors[bot]
846aa5062f
Merge #341
341: Enable caching for Github Actions r=korken89 a=AfoHT

Using [GHA caching](https://docs.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows) to store key parts of the testing environment.

One example is downloading `arm-none-eabi-gcc` (which takes roughly 1 minute) for each checkexamples.

The rustup setup is roughly 200MB and restores nicely.

Rust examples can be found [here](https://github.com/actions/cache/blob/master/examples.md#rust---cargo)

**Something to discuss:**

Several notable projects remove some problematic files in order to keep cache size reasonable

[rust-analyzer](9a7db8fa00/.travis.yml (L2-L4))

[cargo duscussion](https://github.com/rust-lang/cargo/issues/5885)

[tantivity-search](https://github.com/tantivy-search/tantivy/pull/531/files)

[clap-rs](https://github.com/clap-rs/clap/pull/1658/files#diff-354f30a63fb0907d4ad57269548329e3R5-R16)


Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-08-25 17:27:02 +00:00
Henrik Tjäder
877d945870 Try system QEMU 2020-08-24 13:19:00 +00:00
Henrik Tjäder
5a23fb3bd3 Use ubuntu-20.04 (actual latest) 2020-08-24 11:51:21 +00:00
Nathan Fox
d127b377a5
fix badges / clean up README 2020-07-27 21:11:27 -04:00
Henrik Tjäder
6df6db40d8 Trigger CI rerun 2020-07-25 22:37:08 +00:00
Henrik Tjäder
2bde8af214 Remove arm-none-eabi-gcc 2020-07-25 22:26:10 +00:00
Henrik Tjäder
82220d21f7 Try running with cargo-binutils 2020-07-25 22:26:10 +00:00
bors[bot]
f77226af16
Merge #340
340:  rtic::export::Peripherals created by into instead of transmute r=korken89 a=perlindgren



Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2020-07-21 06:36:18 +00:00
bors[bot]
6ea8f6a06a
Merge #344
344: Added badges to 'README.md' file r=AfoHT a=regexident

Badges for quick access to the corresponding pages on **crates.io**, **docs.rs**, the **book** (aka **rtic.rs**), as well as a badge for showing the **minimum required rustc version**.

Co-authored-by: Vincent Esche <regexident@gmail.com>
2020-07-20 21:00:11 +00:00
Vincent Esche
c6ed8cb4b2 Added badges to 'README.md' file 2020-07-15 13:28:23 +02:00
bors[bot]
027b11f6b4
Merge #343
343: Updated URL for example 'init.rs' file r=AfoHT a=regexident

(the file at tag '0.5.0' still uses `rtfm`, rather than `rtic` from tag '0.5.3' or later)

Co-authored-by: Vincent Esche <regexident@gmail.com>
2020-07-15 06:55:05 +00:00
Henrik Tjäder
71677b3170 Remove old PATH modification just to trigger re-run of CI 2020-07-14 15:48:59 +00:00
bors[bot]
42f99840c4
Merge #342
342: Spell check r=AfoHT a=regexident



Co-authored-by: Vincent Esche <regexident@gmail.com>
2020-07-14 15:38:53 +00:00
Vincent Esche
0616435ba6 Updated URL for example 'init.rs' file
(the file at tag '0.5.0' still uses `rtfm`, rather than `rtic` from tag '0.5.3' or later)
2020-07-14 16:26:03 +02:00
Vincent Esche
e9fa71c065 Fixed some more spelling 2020-07-14 16:01:14 +02:00
Vincent Esche
3b48447934 Unified spelling of "real-time" (vs. "real time")
(This spelling is consistent with the one provided by Merriam Webster for use an an adjective)
2020-07-14 16:00:42 +02:00
Henrik Tjäder
156f37765b Enable caching for Github Actions 2020-07-13 20:49:29 +00:00
Per Lindgren
e297ceb1ad rtic::export::Peripherals created by into instead of transmute 2020-07-09 19:37:04 +02:00
bors[bot]
bfb498e722
Merge #337
337: Examples: Clarify extern section r=korken89 a=dbrgn

Some beginners are confused about the "extern" section, so I added an explanation comment to all examples.

![image](https://user-images.githubusercontent.com/105168/85903840-9ad2a780-b807-11ea-943d-3f37b814c23f.png)

Furthermore, using the UARTx interrupts when UART is actually being used in the same example may be confusing, so I changed them all to SSI0/QEI0.

Co-authored-by: Danilo Bargen <mail@dbrgn.ch>
2020-06-30 20:16:46 +00:00