This repository was archived by the owner on Aug 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
#![ no_std]
2
2
#![ no_main]
3
- #![ feature( asm) ]
4
3
5
4
use core:: { fmt:: Write , panic:: PanicInfo } ;
6
5
@@ -83,8 +82,8 @@ fn main() -> ! {
83
82
}
84
83
}
85
84
86
- /// Basic panic handler - just loops
87
85
#[ panic_handler]
88
- fn panic ( _info : & PanicInfo ) -> ! {
86
+ fn panic ( info : & PanicInfo ) -> ! {
87
+ dprintln ! ( "\n \n *** {:?}" , info) ;
89
88
loop { }
90
89
}
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ pub mod config {
143
143
pub struct Pins <
144
144
TX : OutputPin ,
145
145
RX : InputPin ,
146
+ // default pins to allow type inference
146
147
CTS : InputPin = crate :: gpio:: Gpio19 < crate :: gpio:: Input < crate :: gpio:: Floating > > ,
147
148
RTS : OutputPin = crate :: gpio:: Gpio22 < crate :: gpio:: Output < crate :: gpio:: PushPull > > ,
148
149
> {
@@ -158,6 +159,7 @@ pub struct Serial<
158
159
UART : Instance ,
159
160
TX : OutputPin ,
160
161
RX : InputPin ,
162
+ // default pins to allow type inference
161
163
CTS : InputPin = crate :: gpio:: Gpio19 < crate :: gpio:: Input < crate :: gpio:: Floating > > ,
162
164
RTS : OutputPin = crate :: gpio:: Gpio22 < crate :: gpio:: Output < crate :: gpio:: PushPull > > ,
163
165
> {
You can’t perform that action at this time.
0 commit comments