Commit graph

1322 commits

Author SHA1 Message Date
Emil Fresk
4a0393f756
Merge pull request #324 from rtfm-rs/v0.5.2_release
Prepare for v0.5.2 release
2020-06-11 19:07:46 +02:00
Emil Fresk
eb6406da7e Fmt 2020-06-11 19:00:52 +02:00
Emil Fresk
1be9d0067b Prepare for v0.5.2 release 2020-06-11 18:57:56 +02:00
Emil Fresk
81da47c2f7
Merge pull request #323 from rtfm-rs/bors_to_gha
Moved bors to GHA
2020-06-11 18:50:11 +02:00
Emil Fresk
ac0e687431
Merge pull request #313 from russell/patch-1
Update example to use better initial value
2020-06-11 18:45:51 +02:00
bors[bot]
8898224950
Merge #314
314: do not optimize build deps r=korken89 a=japaric

this may make CI faster

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2020-06-11 16:33:39 +00:00
bors[bot]
4795c1dba3
Merge #315
315: allow handlers to be named 'main' r=korken89 a=japaric

`#[init]`, `#[idle]` and `#[task]` handlers can now be named `main`

fixes #311

Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2020-06-11 16:22:33 +00:00
Emil Fresk
4397fbf762
Merge pull request #319 from AfoHT/fixoddex
Use cargo feature instead of conditional compilation hacks
2020-06-11 18:21:01 +02:00
bors[bot]
28e963488f
Merge #320 #322
320: No build opt on msrv r=korken89 a=AfoHT

#314 is failing the tests since 1.36.0 is not capable of 'build-override' profiles.

This extends current CI setup for both Travis and GHA to remove any `build-override` before running in case toolchain is 1.36.0.

322: Update resources.md r=korken89 a=lonesometraveler

This fixes some typos.

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Co-authored-by: KENTARO OKUDA <lonesometraveler@mac.com>
2020-06-11 16:02:48 +00:00
Emil Fresk
d77628ea0c Moved bors to GHA 2020-06-11 17:57:18 +02:00
KENTARO OKUDA
d44f5582d9 Update resources.md 2020-06-11 09:45:53 -04:00
Henrik Tjäder
a8a003fb89 Disable optimisation profiles in GHA for 1.36.0 2020-06-10 15:21:01 +00:00
Henrik Tjäder
29f354020e Remove compilation optimisations on 1.36.0 2020-06-10 14:48:36 +00:00
Henrik Tjäder
5f61f7b75f Use cargo feature instead of conditional compilation hacks 2020-06-10 13:31:48 +00:00
bors[bot]
0b3cc87f2d
Merge #310
310: Update app.md r=korken89 a=lonesometraveler

- Fix typos
- Improve readability

Co-authored-by: KENTARO OKUDA <lonesometraveler@mac.com>
2020-06-09 19:56:14 +00:00
bors[bot]
7b7dc01005
Merge #318
318: Run cargo fmt r=korken89 a=AfoHT

Fix style issues reported by cargo fmt

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-06-09 19:24:48 +00:00
bors[bot]
821f370138
Merge #316
316: Testing GHA v0.1 r=korken89 a=AfoHT

Implementing previous Travis CI setup on Github Actions

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-06-03 10:52:03 +00:00
Henrik Tjäder
137283959c Run cargo fmt 2020-06-03 10:34:01 +00:00
bors[bot]
4f769de5a4
Merge #317
317: Use statically compiled mdbook r=perlindgren a=AfoHT

Instead of building mdbook, get a precompiled version

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-06-02 20:48:34 +00:00
Henrik Tjäder
f6bce2110f Use travis to set the PATH properly 2020-06-02 20:25:33 +00:00
Henrik Tjäder
7e01b1a08e Use statically compiled mdbook 2020-06-02 19:58:56 +00:00
Henrik Tjäder
98110a01c3 Testing GHA v0.1
Implementing previous Travis CI setup on Github Actions
2020-06-02 18:58:06 +00:00
Jorge Aparicio
0ad311074e allow handlers to be named 'main'
`#[init]`, `#[idle]` and `#[task]` handlers can now be named `main`

fixes #311
2020-05-29 14:50:28 +02:00
Jorge Aparicio
3ed4fe3771 TODO(remove) codegen no-op 2020-05-26 22:21:32 +02:00
Jorge Aparicio
303e964a10 touch src/lib.rs 2020-05-26 22:16:31 +02:00
Jorge Aparicio
709e893d00 trigger incremental CI re-build 2020-05-26 22:08:49 +02:00
Jorge Aparicio
413ca089db do not optimize build deps 2020-05-26 21:43:11 +02:00
Russell Sim
7266ffe3a6
Update example to use better initial value
The example above this in the documentation states

```
        // semantically, the monotonic timer is frozen at time "zero" during `init`
        // NOTE do *not* call `Instant::now` in this context; it will return a nonsense value
        let now = cx.start; // the start time of the system
```

It results in weird scheduling issues, but still eventually works.  `cx.start` is much more reliable.

Relates to https://github.com/rtfm-rs/cortex-m-rtfm/issues/196
2020-05-26 07:33:18 +02:00
KENTARO OKUDA
6e59dacdc3 Update app.md 2020-05-13 07:35:51 -04:00
bors[bot]
7406f77a4e
Merge #306
306: Retain cfg-attributes on resources r=korken89 a=AfoHT

When rust 1.43 lands as stable this will resolve #301 and allow for the kind of conditional compilation exemplified in the issue.

Tested on beta and nightly.

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-04-22 14:18:32 +00:00
Henrik Tjäder
f58f37b2b9 Retain cfg-attributes on resources 2020-04-22 09:26:13 +00:00
bors[bot]
bb59606b7c
Merge #307
307: Use build.rs for conditional compilation r=korken89 a=AfoHT

Extend the current test suite to allow for running tests on newer rustc-versions than current MSRV.

Required by #306 to add special tests for future MSRV.

To exclude an example from the regular non-nightly testing:

```
#![no_main]
#![no_std]

#[cfg(rustc_is_nightly)]
mod example {

    use panic_halt as _;

    #[rtfm::app(device = lm3s6965)]
    const APP: () = {
    <more code>
    }
}
```

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-04-21 20:02:28 +00:00
Henrik Tjäder
0bd40dad7d Temporarily disable extra test stub since tests are not merged yet 2020-04-21 08:36:22 +00:00
Henrik Tjäder
61c0e66d11 Remove reference to example
This example will be reintroduced in #306 instead
2020-04-21 08:13:37 +00:00
Henrik Tjäder
fca678b874 Use buildrs for conditional compilation 2020-04-20 16:03:49 +00:00
bors[bot]
e870a68893
Merge #305
305: Updated dead links to SLEEPONEXIT reference on developer.arm.com r=korken89 a=FluenTech



Co-authored-by: Peter Taylor <40178570+FluenTech@users.noreply.github.com>
2020-04-14 19:50:17 +00:00
Peter Taylor
a49d51c4d2
fix SLEEPONEXIT reference link in Russian version 2020-04-13 09:39:03 -06:00
Peter Taylor
02f965ef09
correct SLEEPONEXIT reference link 2020-04-13 09:32:49 -06:00
bors[bot]
d77270adc2
Merge #297
297: Reference the correct example in the by-example book r=japaric a=AfoHT

closes #298 

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-01-28 21:50:55 +00:00
bors[bot]
60c14ef680
Merge #294
294: use the safe DWT::unlock API r=korken89 a=japaric

instead of a unsafe write_volatile call

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2020-01-24 15:45:14 +00:00
Henrik Tjäder
1a1a1e2167 Reference the correct example 2020-01-24 15:34:41 +00:00
bors[bot]
03ac76a0a2
Merge #295
295: docs: do not use Instant::now in #[init] r=korken89 a=japaric



Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2020-01-24 15:14:58 +00:00
Jorge Aparicio
b04103f6df docs: do not use Instant::now in #[init] 2020-01-21 22:23:20 +01:00
Jorge Aparicio
60639b3a9c use the safe DWT::unlock API
instead of a unsafe write_volatile call
2020-01-21 22:13:23 +01:00
bors[bot]
1e827e24d0
Merge #284
284: book, Russian lang: fix "idle not defined" typo r=burbull a=kolen

Fix typo in Russian translation of book, was "When idle function is declared", should be "When no idle function is declared"

"не" means "not".

Corresponding text in English:

```markdown
When no `idle` function is declared, the runtime sets the [SLEEPONEXIT] bit and
then sends the microcontroller to sleep after running `init`.
```

Co-authored-by: Konstantin Mochalov <incredible.angst@gmail.com>
2019-12-04 19:13:35 +00:00
Konstantin Mochalov
2be654116b
book, Russian lang: fix "idle not defined" typo
Fix typo in Russian translation of book, was "When idle function is declared", should be "When no idle function is declared"
2019-12-04 20:08:14 +03:00
bors[bot]
ffe4c07869
Merge #283
283: Include DWT enable in migration guide r=korken89 a=MabezDev

Makes note of the fact the DWT has to be enabled manually in rtfm 0.5.0; an easy one to miss considering debuggers generally enable the DWT automatically.

Co-authored-by: Scott Mabin <scott@mabez.dev>
2019-12-03 16:15:26 +00:00
Scott Mabin
864ec2ebc9 Update migration guide to include the enabling of the the DWT peripheral. Also makes note of enable trace with the DCB to allow the DWT to work without a debugger connected. 2019-12-03 11:33:24 +00:00
bors[bot]
11d9bcdbd1
Merge #280
280: Fixed link to API reference r=TeXitoi a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2019-11-19 19:01:04 +00:00
Emil Fresk
b6927fa63a Fixed link to API reference 2019-11-19 19:49:59 +01:00