File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
3030 if * target != Target :: None {
3131 out. push ( quote ! {
3232 #![ cfg_attr( feature = "rt" , feature( global_asm) ) ]
33- #![ cfg_attr( feature = "rt" , feature( macro_reexport ) ) ]
33+ #![ cfg_attr( feature = "rt" , feature( use_extern_macros ) ) ]
3434 #![ cfg_attr( feature = "rt" , feature( used) ) ]
3535 } ) ;
3636 }
@@ -50,17 +50,19 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
5050 Target :: CortexM => {
5151 out. push ( quote ! {
5252 extern crate cortex_m;
53- #[ macro_reexport( default_handler, exception) ]
5453 #[ cfg( feature = "rt" ) ]
5554 extern crate cortex_m_rt;
55+ #[ cfg( feature = "rt" ) ]
56+ pub use cortex_m_rt:: { default_handler, exception} ;
5657 } ) ;
5758 }
5859 Target :: Msp430 => {
5960 out. push ( quote ! {
6061 extern crate msp430;
61- #[ macro_reexport( default_handler) ]
6262 #[ cfg( feature = "rt" ) ]
6363 extern crate msp430_rt;
64+ #[ cfg( feature = "rt" ) ]
65+ pub use msp430_rt:: default_handler;
6466 } ) ;
6567 }
6668 Target :: RISCV => {
You can’t perform that action at this time.
0 commit comments