File tree 5 files changed +13
-10
lines changed
5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
16
16
- Send stop after acknowledge errors on i2c
17
17
- Fix i2c interactions after errors
18
18
19
+ ### Changed
20
+ - Use ` cortex-m-rtic ` instead of ` cortex-m-rtfm ` in the examples
21
+
19
22
## [ v0.7.0] - 2020-10-17
20
23
21
24
### Breaking changes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ optional = true
43
43
panic-halt = " 0.2.0"
44
44
panic-semihosting = " 0.5.2"
45
45
panic-itm = " 0.4.1"
46
- cortex-m-rtfm = " 0.5"
46
+ cortex-m-rtic = " 0.5"
47
47
cortex-m-semihosting = " 0.3.3"
48
48
heapless = " 0.4.3"
49
49
m = " 0.1.1"
@@ -109,7 +109,7 @@ name = "usb_serial_interrupt"
109
109
required-features = [" rt" , " stm32-usbd" ]
110
110
111
111
[[example ]]
112
- name = " usb_serial_rtfm "
112
+ name = " usb_serial_rtic "
113
113
required-features = [" rt" , " stm32-usbd" ]
114
114
115
115
[[example ]]
@@ -125,7 +125,7 @@ name = "qei"
125
125
required-features = [" medium" ]
126
126
127
127
[[example ]]
128
- name = " timer-interrupt-rtfm "
128
+ name = " timer-interrupt-rtic "
129
129
required-features = [" rt" , " medium" ]
130
130
131
131
[[example ]]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use stm32f1xx_hal::{pac, prelude::*};
17
17
// These two are owned by the ISR. main() may only access them during the initialization phase,
18
18
// where the interrupt is not yet enabled (i.e. no concurrent accesses can occur).
19
19
// After enabling the interrupt, main() may not have any references to these objects any more.
20
- // For the sake of minimalism, we do not use RTFM here, which would be the better way.
20
+ // For the sake of minimalism, we do not use RTIC here, which would be the better way.
21
21
static mut LED : MaybeUninit < stm32f1xx_hal:: gpio:: gpioc:: PC13 < Output < PushPull > > > =
22
22
MaybeUninit :: uninit ( ) ;
23
23
static mut INT_PIN : MaybeUninit < stm32f1xx_hal:: gpio:: gpioa:: PA7 < Input < Floating > > > =
Original file line number Diff line number Diff line change 11
11
// you can put a breakpoint on `rust_begin_unwind` to catch panics
12
12
use panic_halt as _;
13
13
14
- use rtfm :: app;
14
+ use rtic :: app;
15
15
16
16
use embedded_hal:: digital:: v2:: OutputPin ;
17
17
use stm32f1xx_hal:: {
@@ -55,7 +55,7 @@ const APP: () = {
55
55
Timer :: tim1 ( cx. device . TIM1 , & clocks, & mut rcc. apb2 ) . start_count_down ( 1 . hz ( ) ) ;
56
56
timer. listen ( Event :: Update ) ;
57
57
58
- // Init the static resources to use them later through RTFM
58
+ // Init the static resources to use them later through RTIC
59
59
init:: LateResources {
60
60
led,
61
61
timer_handler : timer,
@@ -64,7 +64,7 @@ const APP: () = {
64
64
65
65
// Optional.
66
66
//
67
- // https://rtfm .rs/0.5/book/en/by-example/app.html#idle
67
+ // https://rtic .rs/0.5/book/en/by-example/app.html#idle
68
68
// > When no idle function is declared, the runtime sets the SLEEPONEXIT bit and then
69
69
// > sends the microcontroller to sleep after running init.
70
70
#[ idle]
@@ -84,7 +84,7 @@ const APP: () = {
84
84
static mut COUNT : u8 = 0 ;
85
85
86
86
if * cx. resources . led_state {
87
- // Uses resources managed by rtfm to turn led off (on bluepill)
87
+ // Uses resources managed by rtic to turn led off (on bluepill)
88
88
cx. resources . led . set_high ( ) . unwrap ( ) ;
89
89
* cx. resources . led_state = false ;
90
90
} else {
Original file line number Diff line number Diff line change 1
- //! CDC-ACM serial port example using cortex-m-rtfm .
1
+ //! CDC-ACM serial port example using cortex-m-rtic .
2
2
//! Target board: Blue Pill
3
3
#![ no_main]
4
4
#![ no_std]
@@ -8,7 +8,7 @@ extern crate panic_semihosting;
8
8
9
9
use cortex_m:: asm:: delay;
10
10
use embedded_hal:: digital:: v2:: OutputPin ;
11
- use rtfm :: app;
11
+ use rtic :: app;
12
12
use stm32f1xx_hal:: prelude:: * ;
13
13
use stm32f1xx_hal:: usb:: { Peripheral , UsbBus , UsbBusType } ;
14
14
use usb_device:: bus;
You can’t perform that action at this time.
0 commit comments