Commit graph

1750 commits

Author SHA1 Message Date
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
Jorge Aparicio
1830bdbe5c remove special case around peripherals from codegen 2017-12-09 13:08:08 +01:00
Jorge Aparicio
e97afa71ce peripherals as scoped singletons 2017-12-09 12:45:57 +01:00
homunkulus
e620b1e57a Auto merge of #54 - japaric:fix-tests, r=japaric
fix cfail tests

None
2017-12-08 12:38:07 +00:00
Jorge Aparicio
815c3d960d ci: switch back to a recent nightly 2017-12-08 13:37:46 +01:00
Jorge Aparicio
8e523d036c fix cfail tests 2017-12-08 13:28:27 +01:00
homunkulus
99df0776c6 Auto merge of #51 - japaric:ci, r=japaric
fix ci

None
2017-11-22 08:56:45 +00:00
Jorge Aparicio
cdb2118cd3 use older nightly for the x86_64 linux target 2017-11-22 09:56:17 +01:00
Jorge Aparicio
e90cf07dd6 fix ci 2017-11-22 09:40:36 +01:00
Jorge Aparicio
948e1fd0fb v0.2.2 2017-11-22 09:29:01 +01:00
Jorge Aparicio
c184f91e3c fix the example 2017-10-02 15:11:37 +02:00
Jorge Aparicio
2415a640af fix idle::Resources::new
it assumed that all resources were "early" resources
2017-10-02 14:49:40 +02:00
Jonas Schievink
a190da3e3f Use true as the armv6 linker
Horrible hack until we switch to a Cortex-M0 device crate that works with armv6.
2017-09-22 22:44:31 +02:00
Jonas Schievink
df85298c5a Pin Travis to Xargo 0.3.8 2017-09-22 20:20:13 +02:00
Jonas Schievink
b50c9095c0 Use rtfm-syntax 0.2.0 2017-09-22 20:11:39 +02:00
Jonas Schievink
be1a27ccf9 Add cfail test for late resources 2017-09-22 18:21:12 +02:00