diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-01-11 20:56:45 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-01-11 20:56:45 +0100 |
| commit | 1be43fc489993e63577515063ceb8a83b14423b8 (patch) | |
| tree | 128911a00f60bb7c0dc9c6ceb8c87e80e3935a99 /src/examples/_2_two_tasks.rs | |
| parent | dd12a6a14d2bb028c8da96cb510b67de31d28be4 (diff) | |
adapt to changes in the cortex-m crate
Diffstat (limited to 'src/examples/_2_two_tasks.rs')
| -rw-r--r-- | src/examples/_2_two_tasks.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/examples/_2_two_tasks.rs b/src/examples/_2_two_tasks.rs index 5db991b..cf6b33d 100644 --- a/src/examples/_2_two_tasks.rs +++ b/src/examples/_2_two_tasks.rs @@ -2,6 +2,7 @@ //! //! ``` //! #![deny(unsafe_code)] +//! #![deny(warnings)] //! #![feature(proc_macro)] //! #![no_std] //! @@ -43,18 +44,18 @@ //! //! // As both tasks are running at the same priority one can't preempt the other. //! // Thus both tasks have direct access to the resource -//! fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) { +//! fn sys_tick(_t: &mut Threshold, mut r: SYS_TICK::Resources) { //! // .. //! -//! **r.COUNTER += 1; +//! *r.COUNTER += 1; //! //! // .. //! } //! -//! fn tim2(_t: &mut Threshold, r: TIM2::Resources) { +//! fn tim2(_t: &mut Threshold, mut r: TIM2::Resources) { //! // .. //! -//! **r.COUNTER += 1; +//! *r.COUNTER += 1; //! //! // .. //! } |
