File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ pub fn interrupt(
313
313
} ) ;
314
314
315
315
if * target != Target :: None {
316
+ let abi = match * target {
317
+ Target :: Msp430 => "msp430-interrupt" ,
318
+ _ => "C" ,
319
+ } ;
316
320
mod_items. push ( quote ! {
317
321
#[ cfg( feature = "rt" ) ]
318
322
#[ macro_export]
@@ -331,7 +335,7 @@ pub fn interrupt(
331
335
332
336
#[ allow( non_snake_case) ]
333
337
#[ no_mangle]
334
- pub extern "C" fn $NAME ( ) {
338
+ pub extern #abi fn $NAME ( ) {
335
339
// check that the handler exists
336
340
let _ = $crate :: interrupt:: Interrupt :: $NAME ;
337
341
@@ -350,7 +354,7 @@ pub fn interrupt(
350
354
( $NAME : ident, $path: path) => {
351
355
#[ allow( non_snake_case) ]
352
356
#[ no_mangle]
353
- pub extern "C" fn $NAME ( ) {
357
+ pub extern #abi fn $NAME ( ) {
354
358
// check that the handler exists
355
359
let _ = $crate :: interrupt:: Interrupt :: $NAME ;
356
360
You can’t perform that action at this time.
0 commit comments