From: Matthew Cengia Date: Tue, 15 Aug 2023 00:38:34 +0000 (+1000) Subject: fx2lib: Update __interrupt syntax for sdcc>=4.2.3 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5aab87d358a4585a10ad89277bb88ad139077abd;p=sigrok-firmware-fx2lafw.git fx2lib: Update __interrupt syntax for sdcc>=4.2.3 The SDCC user manual https://sdcc.sourceforge.net/doc/sdccman.pdf section 1.5 "Compatibility with previous versions" on page 11 states: > In 4.2.3, support for non-parenthesized arguments to __using and > __interrupt was dropped. Adjust the imported fx2lib source files to unbreak compilation with more recent SDCC versions. --- diff --git a/fx2lib/include/autovector.h b/fx2lib/include/autovector.h index 495a312..38f80fc 100644 --- a/fx2lib/include/autovector.h +++ b/fx2lib/include/autovector.h @@ -172,49 +172,49 @@ typedef enum { // you must include the predef of these in the file with your main // so lets just define them here -void sudav_isr() __interrupt SUDAV_ISR; -void sof_isr() __interrupt SOF_ISR; -void sutok_isr() __interrupt SUTOK_ISR; -void suspend_isr() __interrupt SUSPEND_ISR; -void usbreset_isr() __interrupt USBRESET_ISR; -void hispeed_isr() __interrupt HISPEED_ISR; -void ep0ack_isr() __interrupt EP0ACK_ISR; -void ep0in_isr() __interrupt EP0IN_ISR; -void ep0out_isr() __interrupt EP0OUT_ISR; -void ep1in_isr() __interrupt EP1IN_ISR; -void ep1out_isr() __interrupt EP1OUT_ISR; -void ep2_isr() __interrupt EP2_ISR; -void ep4_isr() __interrupt EP4_ISR; -void ep6_isr() __interrupt EP6_ISR; -void ep8_isr() __interrupt EP8_ISR; -void ibn_isr() __interrupt IBN_ISR; -void ep0ping_isr() __interrupt EP0PING_ISR; -void ep1ping_isr() __interrupt EP1PING_ISR; -void ep2ping_isr() __interrupt EP2PING_ISR; -void ep4ping_isr() __interrupt EP4PING_ISR; -void ep6ping_isr() __interrupt EP6PING_ISR; -void ep8ping_isr() __interrupt EP8PING_ISR; -void errlimit_isr() __interrupt ERRLIMIT_ISR; -void ep2isoerr_isr() __interrupt EP2ISOERR_ISR; -void ep4isoerr_isr() __interrupt EP4ISOERR_ISR; -void ep6isoerr_isr() __interrupt EP6ISOERR_ISR; -void ep8isoerr_isr() __interrupt EP8ISOERR_ISR; -void spare_isr() __interrupt RESERVED_ISR; // not used +void sudav_isr() __interrupt(SUDAV_ISR); +void sof_isr() __interrupt(SOF_ISR); +void sutok_isr() __interrupt(SUTOK_ISR); +void suspend_isr() __interrupt(SUSPEND_ISR); +void usbreset_isr() __interrupt(USBRESET_ISR); +void hispeed_isr() __interrupt(HISPEED_ISR); +void ep0ack_isr() __interrupt(EP0ACK_ISR); +void ep0in_isr() __interrupt(EP0IN_ISR); +void ep0out_isr() __interrupt(EP0OUT_ISR); +void ep1in_isr() __interrupt(EP1IN_ISR); +void ep1out_isr() __interrupt(EP1OUT_ISR); +void ep2_isr() __interrupt(EP2_ISR); +void ep4_isr() __interrupt(EP4_ISR); +void ep6_isr() __interrupt(EP6_ISR); +void ep8_isr() __interrupt(EP8_ISR); +void ibn_isr() __interrupt(IBN_ISR); +void ep0ping_isr() __interrupt(EP0PING_ISR); +void ep1ping_isr() __interrupt(EP1PING_ISR); +void ep2ping_isr() __interrupt(EP2PING_ISR); +void ep4ping_isr() __interrupt(EP4PING_ISR); +void ep6ping_isr() __interrupt(EP6PING_ISR); +void ep8ping_isr() __interrupt(EP8PING_ISR); +void errlimit_isr() __interrupt(ERRLIMIT_ISR); +void ep2isoerr_isr() __interrupt(EP2ISOERR_ISR); +void ep4isoerr_isr() __interrupt(EP4ISOERR_ISR); +void ep6isoerr_isr() __interrupt(EP6ISOERR_ISR); +void ep8isoerr_isr() __interrupt(EP8ISOERR_ISR); +void spare_isr() __interrupt(RESERVED_ISR); // not used // gpif ints -void ep2pf_isr() __interrupt EP2PF_ISR; -void ep4pf_isr() __interrupt EP4PF_ISR; -void ep6pf_isr() __interrupt EP6PF_ISR; -void ep8pf_isr() __interrupt EP8PF_ISR; -void ep2ef_isr() __interrupt EP2EF_ISR; -void ep4ef_isr() __interrupt EP4EF_ISR; -void ep6ef_isr() __interrupt EP6EF_ISR; -void ep8ef_isr() __interrupt EP8EF_ISR; -void ep2ff_isr() __interrupt EP2FF_ISR; -void ep4ff_isr() __interrupt EP4FF_ISR; -void ep6ff_isr() __interrupt EP6FF_ISR; -void ep8ff_isr() __interrupt EP8FF_ISR; -void gpifdone_isr() __interrupt GPIFDONE_ISR; -void gpifwf_isr() __interrupt GPIFWF_ISR; +void ep2pf_isr() __interrupt(EP2PF_ISR); +void ep4pf_isr() __interrupt(EP4PF_ISR); +void ep6pf_isr() __interrupt(EP6PF_ISR); +void ep8pf_isr() __interrupt(EP8PF_ISR); +void ep2ef_isr() __interrupt(EP2EF_ISR); +void ep4ef_isr() __interrupt(EP4EF_ISR); +void ep6ef_isr() __interrupt(EP6EF_ISR); +void ep8ef_isr() __interrupt(EP8EF_ISR); +void ep2ff_isr() __interrupt(EP2FF_ISR); +void ep4ff_isr() __interrupt(EP4FF_ISR); +void ep6ff_isr() __interrupt(EP6FF_ISR); +void ep8ff_isr() __interrupt(EP8FF_ISR); +void gpifdone_isr() __interrupt(GPIFDONE_ISR); +void gpifwf_isr() __interrupt(GPIFWF_ISR); #endif diff --git a/fx2lib/lib/interrupts/ep0ack_isr.c b/fx2lib/lib/interrupts/ep0ack_isr.c index dec4e56..d216717 100644 --- a/fx2lib/lib/interrupts/ep0ack_isr.c +++ b/fx2lib/lib/interrupts/ep0ack_isr.c @@ -17,5 +17,5 @@ #include -void ep0ack_isr() __interrupt EP0ACK_ISR {} +void ep0ack_isr() __interrupt(EP0ACK_ISR) {} diff --git a/fx2lib/lib/interrupts/ep0in_isr.c b/fx2lib/lib/interrupts/ep0in_isr.c index 2fa99a4..f3d8990 100644 --- a/fx2lib/lib/interrupts/ep0in_isr.c +++ b/fx2lib/lib/interrupts/ep0in_isr.c @@ -17,5 +17,5 @@ #include -void ep0in_isr() __interrupt EP0IN_ISR {} +void ep0in_isr() __interrupt(EP0IN_ISR) {} diff --git a/fx2lib/lib/interrupts/ep0out_isr.c b/fx2lib/lib/interrupts/ep0out_isr.c index 043ae70..a5acedb 100644 --- a/fx2lib/lib/interrupts/ep0out_isr.c +++ b/fx2lib/lib/interrupts/ep0out_isr.c @@ -17,5 +17,5 @@ #include -void ep0out_isr() __interrupt EP0OUT_ISR {} +void ep0out_isr() __interrupt(EP0OUT_ISR) {} diff --git a/fx2lib/lib/interrupts/ep0ping_isr.c b/fx2lib/lib/interrupts/ep0ping_isr.c index 3062d17..7b1ee92 100644 --- a/fx2lib/lib/interrupts/ep0ping_isr.c +++ b/fx2lib/lib/interrupts/ep0ping_isr.c @@ -17,5 +17,5 @@ #include -void ep0ping_isr() __interrupt EP0PING_ISR {} +void ep0ping_isr() __interrupt(EP0PING_ISR) {} diff --git a/fx2lib/lib/interrupts/ep1in_isr.c b/fx2lib/lib/interrupts/ep1in_isr.c index d4ecf06..b666fcb 100644 --- a/fx2lib/lib/interrupts/ep1in_isr.c +++ b/fx2lib/lib/interrupts/ep1in_isr.c @@ -17,5 +17,5 @@ #include -void ep1in_isr() __interrupt EP1IN_ISR {} +void ep1in_isr() __interrupt(EP1IN_ISR) {} diff --git a/fx2lib/lib/interrupts/ep1out_isr.c b/fx2lib/lib/interrupts/ep1out_isr.c index 998b7aa..6c87dc2 100644 --- a/fx2lib/lib/interrupts/ep1out_isr.c +++ b/fx2lib/lib/interrupts/ep1out_isr.c @@ -17,5 +17,5 @@ #include -void ep1out_isr() __interrupt EP1OUT_ISR {} +void ep1out_isr() __interrupt(EP1OUT_ISR) {} diff --git a/fx2lib/lib/interrupts/ep1ping_isr.c b/fx2lib/lib/interrupts/ep1ping_isr.c index ff8990e..c32d437 100644 --- a/fx2lib/lib/interrupts/ep1ping_isr.c +++ b/fx2lib/lib/interrupts/ep1ping_isr.c @@ -17,5 +17,5 @@ #include -void ep1ping_isr() __interrupt EP1PING_ISR {} +void ep1ping_isr() __interrupt(EP1PING_ISR) {} diff --git a/fx2lib/lib/interrupts/ep2_isr.c b/fx2lib/lib/interrupts/ep2_isr.c index 43a31b7..4de637a 100644 --- a/fx2lib/lib/interrupts/ep2_isr.c +++ b/fx2lib/lib/interrupts/ep2_isr.c @@ -17,5 +17,5 @@ #include -void ep2_isr() __interrupt EP2_ISR {} +void ep2_isr() __interrupt(EP2_ISR) {} diff --git a/fx2lib/lib/interrupts/ep2ef_isr.c b/fx2lib/lib/interrupts/ep2ef_isr.c index e26c5e8..46f3f87 100644 --- a/fx2lib/lib/interrupts/ep2ef_isr.c +++ b/fx2lib/lib/interrupts/ep2ef_isr.c @@ -17,5 +17,5 @@ #include -void ep2ef_isr() __interrupt EP2EF_ISR{} +void ep2ef_isr() __interrupt(EP2EF_ISR){} diff --git a/fx2lib/lib/interrupts/ep2ff_isr.c b/fx2lib/lib/interrupts/ep2ff_isr.c index 22bb95d..400e480 100644 --- a/fx2lib/lib/interrupts/ep2ff_isr.c +++ b/fx2lib/lib/interrupts/ep2ff_isr.c @@ -17,5 +17,5 @@ #include -void ep2ff_isr() __interrupt EP2FF_ISR{} +void ep2ff_isr() __interrupt(EP2FF_ISR){} diff --git a/fx2lib/lib/interrupts/ep2isoerr_isr.c b/fx2lib/lib/interrupts/ep2isoerr_isr.c index b9dc9b5..d0ca4a8 100644 --- a/fx2lib/lib/interrupts/ep2isoerr_isr.c +++ b/fx2lib/lib/interrupts/ep2isoerr_isr.c @@ -17,5 +17,5 @@ #include -void ep2isoerr_isr() __interrupt EP2ISOERR_ISR {} +void ep2isoerr_isr() __interrupt(EP2ISOERR_ISR) {} diff --git a/fx2lib/lib/interrupts/ep2pf_isr.c b/fx2lib/lib/interrupts/ep2pf_isr.c index 7cad068..9bd8e9a 100644 --- a/fx2lib/lib/interrupts/ep2pf_isr.c +++ b/fx2lib/lib/interrupts/ep2pf_isr.c @@ -17,5 +17,5 @@ #include -void ep2pf_isr() __interrupt EP2PF_ISR{} +void ep2pf_isr() __interrupt(EP2PF_ISR){} diff --git a/fx2lib/lib/interrupts/ep2ping_isr.c b/fx2lib/lib/interrupts/ep2ping_isr.c index 78affed..dad1e95 100644 --- a/fx2lib/lib/interrupts/ep2ping_isr.c +++ b/fx2lib/lib/interrupts/ep2ping_isr.c @@ -17,5 +17,5 @@ #include -void ep2ping_isr() __interrupt EP2PING_ISR {} +void ep2ping_isr() __interrupt(EP2PING_ISR) {} diff --git a/fx2lib/lib/interrupts/ep4_isr.c b/fx2lib/lib/interrupts/ep4_isr.c index 0315c85..5affac9 100644 --- a/fx2lib/lib/interrupts/ep4_isr.c +++ b/fx2lib/lib/interrupts/ep4_isr.c @@ -17,5 +17,5 @@ #include -void ep4_isr() __interrupt EP4_ISR {} +void ep4_isr() __interrupt(EP4_ISR) {} diff --git a/fx2lib/lib/interrupts/ep4ef_isr.c b/fx2lib/lib/interrupts/ep4ef_isr.c index a203e7b..4a0cff1 100644 --- a/fx2lib/lib/interrupts/ep4ef_isr.c +++ b/fx2lib/lib/interrupts/ep4ef_isr.c @@ -17,5 +17,5 @@ #include -void ep4ef_isr() __interrupt EP4EF_ISR{} +void ep4ef_isr() __interrupt(EP4EF_ISR){} diff --git a/fx2lib/lib/interrupts/ep4ff_isr.c b/fx2lib/lib/interrupts/ep4ff_isr.c index e0cd201..3278da2 100644 --- a/fx2lib/lib/interrupts/ep4ff_isr.c +++ b/fx2lib/lib/interrupts/ep4ff_isr.c @@ -17,5 +17,5 @@ #include -void ep4ff_isr() __interrupt EP4FF_ISR{} +void ep4ff_isr() __interrupt(EP4FF_ISR){} diff --git a/fx2lib/lib/interrupts/ep4isoerr_isr.c b/fx2lib/lib/interrupts/ep4isoerr_isr.c index 579fb8b..dcd7ff9 100644 --- a/fx2lib/lib/interrupts/ep4isoerr_isr.c +++ b/fx2lib/lib/interrupts/ep4isoerr_isr.c @@ -17,5 +17,5 @@ #include -void ep4isoerr_isr() __interrupt EP4ISOERR_ISR {} +void ep4isoerr_isr() __interrupt(EP4ISOERR_ISR) {} diff --git a/fx2lib/lib/interrupts/ep4pf_isr.c b/fx2lib/lib/interrupts/ep4pf_isr.c index ec5ce72..7bbe9f0 100644 --- a/fx2lib/lib/interrupts/ep4pf_isr.c +++ b/fx2lib/lib/interrupts/ep4pf_isr.c @@ -17,5 +17,5 @@ #include -void ep4pf_isr() __interrupt EP4PF_ISR{} +void ep4pf_isr() __interrupt(EP4PF_ISR){} diff --git a/fx2lib/lib/interrupts/ep4ping_isr.c b/fx2lib/lib/interrupts/ep4ping_isr.c index 18bac00..8d22685 100644 --- a/fx2lib/lib/interrupts/ep4ping_isr.c +++ b/fx2lib/lib/interrupts/ep4ping_isr.c @@ -17,5 +17,5 @@ #include -void ep4ping_isr() __interrupt EP4PING_ISR {} +void ep4ping_isr() __interrupt(EP4PING_ISR) {} diff --git a/fx2lib/lib/interrupts/ep6_isr.c b/fx2lib/lib/interrupts/ep6_isr.c index 552e60d..630f9b2 100644 --- a/fx2lib/lib/interrupts/ep6_isr.c +++ b/fx2lib/lib/interrupts/ep6_isr.c @@ -17,5 +17,5 @@ #include -void ep6_isr() __interrupt EP6_ISR {} +void ep6_isr() __interrupt(EP6_ISR) {} diff --git a/fx2lib/lib/interrupts/ep6ef_isr.c b/fx2lib/lib/interrupts/ep6ef_isr.c index 39e8e0c..e9ba6d5 100644 --- a/fx2lib/lib/interrupts/ep6ef_isr.c +++ b/fx2lib/lib/interrupts/ep6ef_isr.c @@ -17,5 +17,5 @@ #include -void ep6ef_isr() __interrupt EP6EF_ISR{} +void ep6ef_isr() __interrupt(EP6EF_ISR){} diff --git a/fx2lib/lib/interrupts/ep6ff_isr.c b/fx2lib/lib/interrupts/ep6ff_isr.c index 5413731..011fe87 100644 --- a/fx2lib/lib/interrupts/ep6ff_isr.c +++ b/fx2lib/lib/interrupts/ep6ff_isr.c @@ -17,5 +17,5 @@ #include -void ep6ff_isr() __interrupt EP6FF_ISR{} +void ep6ff_isr() __interrupt(EP6FF_ISR){} diff --git a/fx2lib/lib/interrupts/ep6isoerr_isr.c b/fx2lib/lib/interrupts/ep6isoerr_isr.c index 407414c..8c00577 100644 --- a/fx2lib/lib/interrupts/ep6isoerr_isr.c +++ b/fx2lib/lib/interrupts/ep6isoerr_isr.c @@ -17,5 +17,5 @@ #include -void ep6isoerr_isr() __interrupt EP6ISOERR_ISR {} +void ep6isoerr_isr() __interrupt(EP6ISOERR_ISR) {} diff --git a/fx2lib/lib/interrupts/ep6pf_isr.c b/fx2lib/lib/interrupts/ep6pf_isr.c index 808f751..52f6d73 100644 --- a/fx2lib/lib/interrupts/ep6pf_isr.c +++ b/fx2lib/lib/interrupts/ep6pf_isr.c @@ -17,5 +17,5 @@ #include -void ep6pf_isr() __interrupt EP6PF_ISR{} +void ep6pf_isr() __interrupt(EP6PF_ISR){} diff --git a/fx2lib/lib/interrupts/ep6ping_isr.c b/fx2lib/lib/interrupts/ep6ping_isr.c index 53f8ba5..5430f20 100644 --- a/fx2lib/lib/interrupts/ep6ping_isr.c +++ b/fx2lib/lib/interrupts/ep6ping_isr.c @@ -17,5 +17,5 @@ #include -void ep6ping_isr() __interrupt EP6PING_ISR {} +void ep6ping_isr() __interrupt(EP6PING_ISR) {} diff --git a/fx2lib/lib/interrupts/ep8_isr.c b/fx2lib/lib/interrupts/ep8_isr.c index 4f1dd51..d415a3e 100644 --- a/fx2lib/lib/interrupts/ep8_isr.c +++ b/fx2lib/lib/interrupts/ep8_isr.c @@ -17,5 +17,5 @@ #include -void ep8_isr() __interrupt EP8_ISR {} +void ep8_isr() __interrupt(EP8_ISR) {} diff --git a/fx2lib/lib/interrupts/ep8ef_isr.c b/fx2lib/lib/interrupts/ep8ef_isr.c index c018f3a..d04d237 100644 --- a/fx2lib/lib/interrupts/ep8ef_isr.c +++ b/fx2lib/lib/interrupts/ep8ef_isr.c @@ -17,5 +17,5 @@ #include -void ep8ef_isr() __interrupt EP8EF_ISR{} +void ep8ef_isr() __interrupt(EP8EF_ISR){} diff --git a/fx2lib/lib/interrupts/ep8ff_isr.c b/fx2lib/lib/interrupts/ep8ff_isr.c index a6169de..d1e5fcd 100644 --- a/fx2lib/lib/interrupts/ep8ff_isr.c +++ b/fx2lib/lib/interrupts/ep8ff_isr.c @@ -17,5 +17,5 @@ #include -void ep8ff_isr() __interrupt EP8FF_ISR{} +void ep8ff_isr() __interrupt(EP8FF_ISR){} diff --git a/fx2lib/lib/interrupts/ep8isoerr_isr.c b/fx2lib/lib/interrupts/ep8isoerr_isr.c index a95bae9..a7e8e0f 100644 --- a/fx2lib/lib/interrupts/ep8isoerr_isr.c +++ b/fx2lib/lib/interrupts/ep8isoerr_isr.c @@ -17,5 +17,5 @@ #include -void ep8isoerr_isr() __interrupt EP8ISOERR_ISR {} +void ep8isoerr_isr() __interrupt(EP8ISOERR_ISR) {} diff --git a/fx2lib/lib/interrupts/ep8pf_isr.c b/fx2lib/lib/interrupts/ep8pf_isr.c index b0e687c..53dcdf2 100644 --- a/fx2lib/lib/interrupts/ep8pf_isr.c +++ b/fx2lib/lib/interrupts/ep8pf_isr.c @@ -17,5 +17,5 @@ #include -void ep8pf_isr() __interrupt EP8PF_ISR{} +void ep8pf_isr() __interrupt(EP8PF_ISR){} diff --git a/fx2lib/lib/interrupts/ep8ping_isr.c b/fx2lib/lib/interrupts/ep8ping_isr.c index e9c25d9..5cf05dc 100644 --- a/fx2lib/lib/interrupts/ep8ping_isr.c +++ b/fx2lib/lib/interrupts/ep8ping_isr.c @@ -17,5 +17,5 @@ #include -void ep8ping_isr() __interrupt EP8PING_ISR {} +void ep8ping_isr() __interrupt(EP8PING_ISR) {} diff --git a/fx2lib/lib/interrupts/errlimit_isr.c b/fx2lib/lib/interrupts/errlimit_isr.c index fe103c2..cf4e1f6 100644 --- a/fx2lib/lib/interrupts/errlimit_isr.c +++ b/fx2lib/lib/interrupts/errlimit_isr.c @@ -17,5 +17,5 @@ #include -void errlimit_isr() __interrupt ERRLIMIT_ISR {} +void errlimit_isr() __interrupt(ERRLIMIT_ISR) {} diff --git a/fx2lib/lib/interrupts/gpifdone_isr.c b/fx2lib/lib/interrupts/gpifdone_isr.c index 6bb15c7..ee5ce1f 100644 --- a/fx2lib/lib/interrupts/gpifdone_isr.c +++ b/fx2lib/lib/interrupts/gpifdone_isr.c @@ -17,5 +17,5 @@ #include -void gpifdone_isr() __interrupt GPIFDONE_ISR{} +void gpifdone_isr() __interrupt(GPIFDONE_ISR){} diff --git a/fx2lib/lib/interrupts/gpifwf_isr.c b/fx2lib/lib/interrupts/gpifwf_isr.c index 49eba44..e994154 100644 --- a/fx2lib/lib/interrupts/gpifwf_isr.c +++ b/fx2lib/lib/interrupts/gpifwf_isr.c @@ -17,5 +17,5 @@ #include -void gpifwf_isr() __interrupt GPIFWF_ISR{} +void gpifwf_isr() __interrupt(GPIFWF_ISR){} diff --git a/fx2lib/lib/interrupts/hispeed_isr.c b/fx2lib/lib/interrupts/hispeed_isr.c index 7b05916..9daabc1 100644 --- a/fx2lib/lib/interrupts/hispeed_isr.c +++ b/fx2lib/lib/interrupts/hispeed_isr.c @@ -17,5 +17,5 @@ #include -void hispeed_isr() __interrupt HISPEED_ISR {} +void hispeed_isr() __interrupt(HISPEED_ISR) {} diff --git a/fx2lib/lib/interrupts/ibn_isr.c b/fx2lib/lib/interrupts/ibn_isr.c index 0f38871..aa0a752 100644 --- a/fx2lib/lib/interrupts/ibn_isr.c +++ b/fx2lib/lib/interrupts/ibn_isr.c @@ -17,5 +17,5 @@ #include -void ibn_isr() __interrupt IBN_ISR {} +void ibn_isr() __interrupt(IBN_ISR) {} diff --git a/fx2lib/lib/interrupts/sof_isr.c b/fx2lib/lib/interrupts/sof_isr.c index 49bf508..64a409c 100644 --- a/fx2lib/lib/interrupts/sof_isr.c +++ b/fx2lib/lib/interrupts/sof_isr.c @@ -17,5 +17,5 @@ #include -void sof_isr() __interrupt SOF_ISR {} +void sof_isr() __interrupt(SOF_ISR) {} diff --git a/fx2lib/lib/interrupts/spare_isr.c b/fx2lib/lib/interrupts/spare_isr.c index 965b281..3b81fd2 100644 --- a/fx2lib/lib/interrupts/spare_isr.c +++ b/fx2lib/lib/interrupts/spare_isr.c @@ -17,5 +17,5 @@ #include -void spare_isr() __interrupt RESERVED_ISR {} +void spare_isr() __interrupt(RESERVED_ISR) {} diff --git a/fx2lib/lib/interrupts/sudav_isr.c b/fx2lib/lib/interrupts/sudav_isr.c index 7660e11..4d36b59 100644 --- a/fx2lib/lib/interrupts/sudav_isr.c +++ b/fx2lib/lib/interrupts/sudav_isr.c @@ -17,5 +17,5 @@ #include -void sudav_isr() __interrupt SUDAV_ISR {} +void sudav_isr() __interrupt(SUDAV_ISR) {} diff --git a/fx2lib/lib/interrupts/suspend_isr.c b/fx2lib/lib/interrupts/suspend_isr.c index 4b2f1aa..cf08b28 100644 --- a/fx2lib/lib/interrupts/suspend_isr.c +++ b/fx2lib/lib/interrupts/suspend_isr.c @@ -17,5 +17,5 @@ #include -void suspend_isr() __interrupt SUSPEND_ISR {} +void suspend_isr() __interrupt(SUSPEND_ISR) {} diff --git a/fx2lib/lib/interrupts/sutok_isr.c b/fx2lib/lib/interrupts/sutok_isr.c index 0533079..8c7368d 100644 --- a/fx2lib/lib/interrupts/sutok_isr.c +++ b/fx2lib/lib/interrupts/sutok_isr.c @@ -17,5 +17,5 @@ #include -void sutok_isr() __interrupt SUTOK_ISR {} +void sutok_isr() __interrupt(SUTOK_ISR) {} diff --git a/fx2lib/lib/interrupts/usbreset_isr.c b/fx2lib/lib/interrupts/usbreset_isr.c index 7f2ed72..8888eed 100644 --- a/fx2lib/lib/interrupts/usbreset_isr.c +++ b/fx2lib/lib/interrupts/usbreset_isr.c @@ -17,5 +17,5 @@ #include -void usbreset_isr() __interrupt USBRESET_ISR {} +void usbreset_isr() __interrupt(USBRESET_ISR) {}