File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -232,16 +232,17 @@ pub fn interrupt(
232
232
names. push ( name_uc) ;
233
233
}
234
234
235
- let aliases = names. iter ( )
236
- . map ( |n| format ! ( "
237
- .weak {0}
238
- {0} = DEFAULT_HANDLER" , n) )
239
- . collect :: < Vec < _ > > ( )
240
- . concat ( ) ;
241
-
242
235
let n = util:: unsuffixed ( u64 ( pos) ) ;
243
236
match * target {
244
237
Target :: CortexM => {
238
+ let aliases = names. iter ( )
239
+ . map ( |n| format ! ( "
240
+ .weak {0}
241
+ .type {0},%function
242
+ {0} = DEFAULT_HANDLER" , n) )
243
+ . collect :: < Vec < _ > > ( )
244
+ . concat ( ) ;
245
+
245
246
mod_items. push ( quote ! {
246
247
#[ cfg( feature = "rt" ) ]
247
248
global_asm!( #aliases) ;
@@ -263,6 +264,14 @@ pub fn interrupt(
263
264
} ) ;
264
265
}
265
266
Target :: Msp430 => {
267
+ let aliases = names. iter ( )
268
+ . map ( |n| format ! ( "
269
+ .weak {0}
270
+ .type {0},@function
271
+ {0} = DEFAULT_HANDLER" , n) )
272
+ . collect :: < Vec < _ > > ( )
273
+ . concat ( ) ;
274
+
266
275
mod_items. push ( quote ! {
267
276
#[ cfg( feature = "rt" ) ]
268
277
global_asm!( #aliases) ;
You can’t perform that action at this time.
0 commit comments