Commit graph

765 commits

Author SHA1 Message Date
Jorge Aparicio
c9c5ade132 enable builds on master 2018-08-27 14:45:43 +02:00
Jorge Aparicio
2b6b513b89 publish docs on gh pages 2018-08-27 14:44:47 +02:00
Jorge Aparicio
2ec5d59ee9 v0.3.3 2018-08-24 16:49:03 +02:00
bors[bot]
62a232f5c6 Merge #85
85: fix master r=japaric a=japaric

closes #80

Co-authored-by: Ferdia McKeogh <chocol4te@users.noreply.github.com>
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2018-08-24 14:36:59 +00:00
Jorge Aparicio
90c9f64c5a install newer gcc 2018-08-24 16:36:33 +02:00
Jorge Aparicio
abca829926 more fixes 2018-08-24 16:31:04 +02:00
Ferdia McKeogh
5a3605050e Fix mistakes in dependencies 2018-06-07 11:50:14 +01:00
Ferdia McKeogh
14b1811182 Fix "Could not find Op in proc_macro" 2018-06-07 11:45:11 +01:00
Jorge Aparicio
53dbbad891 v0.3.2 2018-04-16 23:33:55 +02:00
bors[bot]
cb2d286a66 Merge #72
72: switch to a crates.io release of rtfm-syntax r=japaric a=japaric



Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2018-04-16 21:27:27 +00:00
Jorge Aparicio
ff089a4d89 drop the cargo cache 2018-04-16 23:26:55 +02:00
Jorge Aparicio
8767f625d8 switch to a crates.io release of rtfm-syntax 2018-04-16 23:22:01 +02:00
bors[bot]
5ff9076e9c Merge #71
71: update parser r=japaric a=japaric

closes #69

this doesn't change functionality per se but improves diagnostics in some cases. Some hard errors
have becomes warnings, for example: when `resources` is empty, or when `idle.path` is set to the
default `idle` path.

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2018-04-16 19:44:27 +00:00
Jorge Aparicio
bfa56e12f7 install rust-std component 2018-04-16 21:44:02 +02:00
Jorge Aparicio
bcce6b988b fix ci/install.sh 2018-04-16 21:39:16 +02:00
Jorge Aparicio
44122bfc3d don't cache the Xargo directory 2018-04-16 21:33:34 +02:00
Jorge Aparicio
efca108103 cargo fmt 2018-04-16 21:32:52 +02:00
Jorge Aparicio
7fdf16eab9 update parser
closes #69

this doesn't change functionality per se but improves diagnostics in some cases. Some hard errors
have becomes warnings, for example: when `resources` is empty, or when `idle.path` is set to the
default `idle` path.
2018-04-16 21:32:29 +02:00
Jorge Aparicio
b55581dfe3 bors-ng integration 2018-04-16 21:27:02 +02:00
Jorge Aparicio
f76bdc285d v0.3.1 2018-01-16 00:25:25 +01:00
homunkulus
d0970211f7 Auto merge of #66 - japaric:path-and-version, r=japaric
specify both the path and version of the cortex-m-rtfm-macros dependency

this seems to be required for cargo publish to Just Work

cc @jonas-schievink
2018-01-15 23:16:33 +00:00
Jorge Aparicio
bf94be9f7e specify both the path and version of the cortex-m-rtfm-macros dependency 2018-01-16 00:15:07 +01:00
homunkulus
716fb9ba14 Auto merge of #65 - japaric:fix-doc-link, r=japaric
fix documentation link

None
2018-01-15 22:58:31 +00:00
Jorge Aparicio
d8eb3eac75 fix documentation link 2018-01-15 23:58:04 +01:00
homunkulus
b73263e8fa Auto merge of #64 - japaric:v3, r=japaric
v0.3.0

None
2018-01-15 22:34:09 +00:00
Jorge Aparicio
def4fc8079 v0.3.0 2018-01-15 23:33:09 +01:00
homunkulus
34edc41e92 Auto merge of #63 - japaric:cortex-m-up, r=japaric
adapt to changes in the cortex-m crate

None
2018-01-11 19:57:17 +00:00
Jorge Aparicio
1be43fc489 adapt to changes in the cortex-m crate 2018-01-11 20:56:45 +01:00
homunkulus
dd12a6a14d Auto merge of #61 - japaric:cm7-r0p1, r=japaric
add a Cargo feature, cm7-r0p1, to fix a Cortex-M7 BASEPRI erratum

closes #53
alternative solution to #54
depends on japaric/cortex-m#72
2018-01-11 15:03:59 +00:00
Jorge Aparicio
f695bdb7e9 fix the compiletest_rs version 2018-01-11 16:03:41 +01:00
Jorge Aparicio
6e3b9a30fd switch to a stable release of compiletest_rs 2018-01-11 15:46:38 +01:00
Jorge Aparicio
2249985e81 use master branch of cortex-m 2018-01-11 15:46:27 +01:00
Jorge Aparicio
c94bd2d98d add a Cargo feature, cm7-r0p1, to fix a Cortex-M7 BASEPRI erratum 2017-12-23 21:49:15 +01:00
homunkulus
8a396c51f2 Auto merge of #58 - japaric:init-resources, r=japaric
safe `&'static mut` references via init.resources

see RFC #59 for details
2017-12-23 10:36:08 +00:00
Jorge Aparicio
a238fd5dc7 switch to a compiletest version that works with the latest nightly 2017-12-23 11:35:56 +01:00
Jorge Aparicio
88f505369c switch to master branches 2017-12-23 11:17:03 +01:00
Jorge Aparicio
b00f4fec14 add missing comma 2017-12-17 10:00:56 +01:00
Jorge Aparicio
d30bdcb096 safe &'static mut references via init.resources 2017-12-09 17:17:56 +01:00
Jorge Aparicio
a6dd004113 implement the Resource trait for owned resources
this unbreaks the "generics" example
2017-12-09 17:17:56 +01:00
Jorge Aparicio
219e172680 drop the Static wrapper 2017-12-09 17:15:15 +01:00
homunkulus
0f5784c240 Auto merge of #57 - japaric:not-sync, r=japaric
make resource proxies not Sync

None
2017-12-09 15:13:42 +00:00
Jorge Aparicio
62c5c1ae43 make resource proxies not Sync 2017-12-09 16:13:22 +01:00
homunkulus
40ebb93cc6 Auto merge of #56 - japaric:not-send, r=japaric
make resource proxies !Send

None
2017-12-09 14:26:38 +00:00
Jorge Aparicio
d6c240f974 also cache the Xargo directory 2017-12-09 15:25:46 +01:00
Jorge Aparicio
8f23fdc934 deny warnings and unsafe code in tests and examples 2017-12-09 15:12:42 +01:00
Jorge Aparicio
9865a7246d make resource proxies !Send 2017-12-09 15:10:29 +01:00
homunkulus
0a0e0e2b38 Auto merge of #55 - japaric:late-resources, r=japaric
[RFC] rename LateResourceValues to LateResources

After writing `LateResourceValues` several times I now think it's too long to type. I'd like that
struct to be renamed to `LateResources`. I don't think there would be a loss in readability with the
rename because you can think of "late resources" as resources that "don't exist" until `init` ends
instead of as resources that are not initialized after `init` ends -- the second meaning maps better
to `LateResourceValues`.

This would be a breaking-change but we are moving to v0.3.0 due to #50 in any case.

cc jonas-schievink
2017-12-09 13:47:10 +00:00
Jorge Aparicio
512091e8a3 fix the "generics" example 2017-12-09 14:45:59 +01:00
Jorge Aparicio
79e2b7dc2e rename LateResourceValues to LateResources 2017-12-09 13:20:41 +01:00
homunkulus
e78ca98c42 Auto merge of #50 - japaric:singletons, r=japaric
Peripherals as scoped singletons

See this RFC for details: japaric/svd2rust#157

- The first commit adapts this crate to the changes in japaric/cortex-m#65 and japaric/svd2rust#158
- ~~The second commit is an alternative implementation of RFC #47 (there's another implementation in #49. This second commit is not required for RFC157 but let us experiment with safe DMA abstractions.~~ postponed

### TODO

- [x] un-bless peripherals as resources. Peripherals as resources were special cased: if resource listed in e.g. `app.tasks.FOO.resources` didn't appear in `app.resources` then it was assumed to be a peripheral and special code was generated for it. This is no longer required under RFC157.

~~This depends on PR japaric/rtfm-syntax#2~~ postponed
2017-12-09 12:09:35 +00:00