diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2024-03-02 11:26:48 +0200 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-03-02 11:45:24 +0200 |
commit | 49a14d144c6b170082562cda55f3c414ecf7b7b6 (patch) | |
tree | b12189282de58cb31e9dae057f2a06680a5970e5 /sys-firmware | |
parent | sys-firmware/sigrok-firmware-fx2lafw: backport syntax updates (diff) | |
download | gentoo-49a14d144c6b170082562cda55f3c414ecf7b7b6.tar.gz gentoo-49a14d144c6b170082562cda55f3c414ecf7b7b6.tar.bz2 gentoo-49a14d144c6b170082562cda55f3c414ecf7b7b6.zip |
sys-firmware/sigrok-firmware-fx2lafw: Move large patch to dev space
Upload the patch to dev space.
Various small style changes (fix pkgcheck warnings).
Sync live.
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/Manifest | 1 | ||||
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/files/sigrok-firmware-fx2lafw-update-syntax.patch | 980 | ||||
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r2.ebuild (renamed from sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r1.ebuild) | 30 | ||||
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild | 28 |
4 files changed, 38 insertions, 1001 deletions
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/Manifest b/sys-firmware/sigrok-firmware-fx2lafw/Manifest index cacd9d659689..6bfe7ff8ed7f 100644 --- a/sys-firmware/sigrok-firmware-fx2lafw/Manifest +++ b/sys-firmware/sigrok-firmware-fx2lafw/Manifest @@ -1,2 +1,3 @@ +DIST sigrok-firmware-fx2lafw-0.1.7-update-syntax.patch.xz 3668 BLAKE2B 969607c030b5a9076fb2b9598886714a2243ec642f34c63e92ddd1f4f5b8d315755ed093f30158d363aae857f096f060ea8ad7cde5e61d99c2db99de373877de SHA512 5bb124c4f60dc1b574b987605c8f5c4a10826127569d315df378510ba6977d11466761991894834ec05212799c8cae30f34d37419f5fac89d1570451b690a548 DIST sigrok-firmware-fx2lafw-0.1.7.tar.gz 145443 BLAKE2B 6e19fde87caf942ca8f95a67f5ba5553e2044e9ba43ca81f6b7be69f4a75ca25e946edf80d0f4ddf7d361f98aff68e9a0d950070fbca24423c908fbc70155ae9 SHA512 e9973980b07cef395637476c6294473e349770be24afe6b03d284bf3057f6b32fe686e25f3baa180b96455397db43e16f191a9feb07bf46e097170fb4d326f8e DIST sigrok-firmware-fx2lafw-bin-0.1.7.tar.gz 54529 BLAKE2B b8659ba77f6976a927bd60c903abbc7bf7128d4dfff8a58dfe1f6522c6f7d5e5c0f8c8bc170fef7499461426ab1059093c4cc1553a39f4a059786cfc144f787f SHA512 60faac29198532bd5e03e44ed7f89c1502c83c6cf60ec5cc0f3ae9891c45b5de55eba5304c47d3231c8222ff61f1425aed88a44e7ff89d30b75d6e5faf7a623c diff --git a/sys-firmware/sigrok-firmware-fx2lafw/files/sigrok-firmware-fx2lafw-update-syntax.patch b/sys-firmware/sigrok-firmware-fx2lafw/files/sigrok-firmware-fx2lafw-update-syntax.patch deleted file mode 100644 index 2663f54da679..000000000000 --- a/sys-firmware/sigrok-firmware-fx2lafw/files/sigrok-firmware-fx2lafw-update-syntax.patch +++ /dev/null @@ -1,980 +0,0 @@ -http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=commitdiff_plain;h=96b0b476522c3f93a47ff8f479ec08105ba6a2a5 -http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=commitdiff_plain;h=5aab87d358a4585a10ad89277bb88ad139077abd -http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=commitdiff_plain;h=3e08500d22f87f69941b65cf8b8c1b85f9b41173 -commit 96b0b476522c3f93a47ff8f479ec08105ba6a2a5 -Author: Matthew Cengia <mattcen@mattcen.com> -Date: Tue Aug 15 10:35:45 2023 +1000 - - fx2lafw: Update __at 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 12 states: - - > In 4.2.3, support for non-parenthesized arguments to __at that are - > not constants was dropped. - - Adjust the sigrok fx2lafw application source to unbreak compilation with - more recent SDCC versions. - -diff --git a/fx2lib/include/fx2regs.h b/fx2lib/include/fx2regs.h -index 0645fe3..6ae3339 100644 ---- a/fx2lib/include/fx2regs.h -+++ b/fx2lib/include/fx2regs.h -@@ -266,14 +266,14 @@ __xdata __at 0xE50D volatile BYTE GPCR2; ///< Chip Features - - __sfr __at 0x80 IOA; - /* IOA */ -- __sbit __at 0x80 + 0 PA0; -- __sbit __at 0x80 + 1 PA1; -- __sbit __at 0x80 + 2 PA2; -- __sbit __at 0x80 + 3 PA3; -- __sbit __at 0x80 + 4 PA4; -- __sbit __at 0x80 + 5 PA5; -- __sbit __at 0x80 + 6 PA6; -- __sbit __at 0x80 + 7 PA7; -+ __sbit __at (0x80+0) PA0; -+ __sbit __at (0x80+1) PA1; -+ __sbit __at (0x80+2) PA2; -+ __sbit __at (0x80+3) PA3; -+ __sbit __at (0x80+4) PA4; -+ __sbit __at (0x80+5) PA5; -+ __sbit __at (0x80+6) PA6; -+ __sbit __at (0x80+7) PA7; - __sfr __at 0x81 SP; - __sfr __at 0x82 DPL; - __sfr __at 0x83 DPH; -@@ -283,14 +283,14 @@ __sfr __at 0x86 DPS; - __sfr __at 0x87 PCON; - __sfr __at 0x88 TCON; - /* TCON */ -- __sbit __at 0x88+0 IT0; -- __sbit __at 0x88+1 IE0; -- __sbit __at 0x88+2 IT1; -- __sbit __at 0x88+3 IE1; -- __sbit __at 0x88+4 TR0; -- __sbit __at 0x88+5 TF0; -- __sbit __at 0x88+6 TR1; -- __sbit __at 0x88+7 TF1; -+ __sbit __at (0x88+0) IT0; -+ __sbit __at (0x88+1) IE0; -+ __sbit __at (0x88+2) IT1; -+ __sbit __at (0x88+3) IE1; -+ __sbit __at (0x88+4) TR0; -+ __sbit __at (0x88+5) TF0; -+ __sbit __at (0x88+6) TR1; -+ __sbit __at (0x88+7) TF1; - __sfr __at 0x89 TMOD; - __sfr __at 0x8A TL0; - __sfr __at 0x8B TL1; -@@ -299,28 +299,28 @@ __sfr __at 0x8D TH1; - __sfr __at 0x8E CKCON; - __sfr __at 0x90 IOB; - /* IOB */ -- __sbit __at 0x90 + 0 PB0; -- __sbit __at 0x90 + 1 PB1; -- __sbit __at 0x90 + 2 PB2; -- __sbit __at 0x90 + 3 PB3; -- __sbit __at 0x90 + 4 PB4; -- __sbit __at 0x90 + 5 PB5; -- __sbit __at 0x90 + 6 PB6; -- __sbit __at 0x90 + 7 PB7; -+ __sbit __at (0x90+0) PB0; -+ __sbit __at (0x90+1) PB1; -+ __sbit __at (0x90+2) PB2; -+ __sbit __at (0x90+3) PB3; -+ __sbit __at (0x90+4) PB4; -+ __sbit __at (0x90+5) PB5; -+ __sbit __at (0x90+6) PB6; -+ __sbit __at (0x90+7) PB7; - __sfr __at 0x91 EXIF; - - //__sfr __at 0x92 MPAGE; - __sfr __at 0x92 _XPAGE; // same as MPAGE for pdata __sfr access w/ sdcc - __sfr __at 0x98 SCON0; - /* SCON0 */ -- __sbit __at 0x98+0 RI; -- __sbit __at 0x98+1 TI; -- __sbit __at 0x98+2 RB8; -- __sbit __at 0x98+3 TB8; -- __sbit __at 0x98+4 REN; -- __sbit __at 0x98+5 SM2; -- __sbit __at 0x98+6 SM1; -- __sbit __at 0x98+7 SM0; -+ __sbit __at (0x98+0) RI; -+ __sbit __at (0x98+1) TI; -+ __sbit __at (0x98+2) RB8; -+ __sbit __at (0x98+3) TB8; -+ __sbit __at (0x98+4) REN; -+ __sbit __at (0x98+5) SM2; -+ __sbit __at (0x98+6) SM1; -+ __sbit __at (0x98+7) SM0; - __sfr __at 0x99 SBUF0; - - __sfr __at 0x9A AUTOPTRH1; -@@ -330,27 +330,27 @@ __sfr __at 0x9E AUTOPTRL2; - - __sfr __at 0xA0 IOC; - /* IOC */ -- __sbit __at 0xA0 + 0 PC0; -- __sbit __at 0xA0 + 1 PC1; -- __sbit __at 0xA0 + 2 PC2; -- __sbit __at 0xA0 + 3 PC3; -- __sbit __at 0xA0 + 4 PC4; -- __sbit __at 0xA0 + 5 PC5; -- __sbit __at 0xA0 + 6 PC6; -- __sbit __at 0xA0 + 7 PC7; -+ __sbit __at (0xA0+0) PC0; -+ __sbit __at (0xA0+1) PC1; -+ __sbit __at (0xA0+2) PC2; -+ __sbit __at (0xA0+3) PC3; -+ __sbit __at (0xA0+4) PC4; -+ __sbit __at (0xA0+5) PC5; -+ __sbit __at (0xA0+6) PC6; -+ __sbit __at (0xA0+7) PC7; - __sfr __at 0xA1 INT2CLR; - __sfr __at 0xA2 INT4CLR; - - __sfr __at 0xA8 IE; - /* IE */ -- __sbit __at 0xA8+0 EX0; -- __sbit __at 0xA8+1 ET0; -- __sbit __at 0xA8+2 EX1; -- __sbit __at 0xA8+3 ET1; -- __sbit __at 0xA8+4 ES0; -- __sbit __at 0xA8+5 ET2; -- __sbit __at 0xA8+6 ES1; -- __sbit __at 0xA8+7 EA; -+ __sbit __at (0xA8+0) EX0; -+ __sbit __at (0xA8+1) ET0; -+ __sbit __at (0xA8+2) EX1; -+ __sbit __at (0xA8+3) ET1; -+ __sbit __at (0xA8+4) ES0; -+ __sbit __at (0xA8+5) ET2; -+ __sbit __at (0xA8+6) ES1; -+ __sbit __at (0xA8+7) EA; - - __sfr __at 0xAA EP2468STAT; - __sfr __at 0xAB EP24FIFOFLGS; -@@ -358,14 +358,14 @@ __sfr __at 0xAC EP68FIFOFLGS; - __sfr __at 0xAF AUTOPTRSETUP; - __sfr __at 0xB0 IOD; - /* IOD */ -- __sbit __at 0xB0 + 0 PD0; -- __sbit __at 0xB0 + 1 PD1; -- __sbit __at 0xB0 + 2 PD2; -- __sbit __at 0xB0 + 3 PD3; -- __sbit __at 0xB0 + 4 PD4; -- __sbit __at 0xB0 + 5 PD5; -- __sbit __at 0xB0 + 6 PD6; -- __sbit __at 0xB0 + 7 PD7; -+ __sbit __at (0xB0+0) PD0; -+ __sbit __at (0xB0+1) PD1; -+ __sbit __at (0xB0+2) PD2; -+ __sbit __at (0xB0+3) PD3; -+ __sbit __at (0xB0+4) PD4; -+ __sbit __at (0xB0+5) PD5; -+ __sbit __at (0xB0+6) PD6; -+ __sbit __at (0xB0+7) PD7; - __sfr __at 0xB1 IOE; - __sfr __at 0xB2 OEA; - __sfr __at 0xB3 OEB; -@@ -375,13 +375,13 @@ __sfr __at 0xB6 OEE; - - __sfr __at 0xB8 IP; - /* IP */ -- __sbit __at 0xB8+0 PX0; -- __sbit __at 0xB8+1 PT0; -- __sbit __at 0xB8+2 PX1; -- __sbit __at 0xB8+3 PT1; -- __sbit __at 0xB8+4 PS0; -- __sbit __at 0xB8+5 PT2; -- __sbit __at 0xB8+6 PS1; -+ __sbit __at (0xB8+0) PX0; -+ __sbit __at (0xB8+1) PT0; -+ __sbit __at (0xB8+2) PX1; -+ __sbit __at (0xB8+3) PT1; -+ __sbit __at (0xB8+4) PS0; -+ __sbit __at (0xB8+5) PT2; -+ __sbit __at (0xB8+6) PS1; - - __sfr __at 0xBA EP01STAT; - __sfr __at 0xBB GPIFTRIG; -@@ -392,61 +392,61 @@ __sfr __at 0xBF GPIFSGLDATLNOX; - - __sfr __at 0xC0 SCON1; - /* SCON1 */ -- __sbit __at 0xC0+0 RI1; -- __sbit __at 0xC0+1 TI1; -- __sbit __at 0xC0+2 RB81; -- __sbit __at 0xC0+3 TB81; -- __sbit __at 0xC0+4 REN1; -- __sbit __at 0xC0+5 SM21; -- __sbit __at 0xC0+6 SM11; -- __sbit __at 0xC0+7 SM01; -+ __sbit __at (0xC0+0) RI1; -+ __sbit __at (0xC0+1) TI1; -+ __sbit __at (0xC0+2) RB81; -+ __sbit __at (0xC0+3) TB81; -+ __sbit __at (0xC0+4) REN1; -+ __sbit __at (0xC0+5) SM21; -+ __sbit __at (0xC0+6) SM11; -+ __sbit __at (0xC0+7) SM01; - __sfr __at 0xC1 SBUF1; - __sfr __at 0xC8 T2CON; - /* T2CON */ -- __sbit __at 0xC8+0 CP_RL2; -- __sbit __at 0xC8+1 C_T2; -- __sbit __at 0xC8+2 TR2; -- __sbit __at 0xC8+3 EXEN2; -- __sbit __at 0xC8+4 TCLK; -- __sbit __at 0xC8+5 RCLK; -- __sbit __at 0xC8+6 EXF2; -- __sbit __at 0xC8+7 TF2; -+ __sbit __at (0xC8+0) CP_RL2; -+ __sbit __at (0xC8+1) C_T2; -+ __sbit __at (0xC8+2) TR2; -+ __sbit __at (0xC8+3) EXEN2; -+ __sbit __at (0xC8+4) TCLK; -+ __sbit __at (0xC8+5) RCLK; -+ __sbit __at (0xC8+6) EXF2; -+ __sbit __at (0xC8+7) TF2; - __sfr __at 0xCA RCAP2L; - __sfr __at 0xCB RCAP2H; - __sfr __at 0xCC TL2; - __sfr __at 0xCD TH2; - __sfr __at 0xD0 PSW; - /* PSW */ -- __sbit __at 0xD0+0 P; -- __sbit __at 0xD0+1 FL; -- __sbit __at 0xD0+2 OV; -- __sbit __at 0xD0+3 RS0; -- __sbit __at 0xD0+4 RS1; -- __sbit __at 0xD0+5 F0; -- __sbit __at 0xD0+6 AC; -- __sbit __at 0xD0+7 CY; -+ __sbit __at (0xD0+0) P; -+ __sbit __at (0xD0+1) FL; -+ __sbit __at (0xD0+2) OV; -+ __sbit __at (0xD0+3) RS0; -+ __sbit __at (0xD0+4) RS1; -+ __sbit __at (0xD0+5) F0; -+ __sbit __at (0xD0+6) AC; -+ __sbit __at (0xD0+7) CY; - __sfr __at 0xD8 EICON; // Was WDCON in DS80C320; Bit Values differ from Reg320 - /* EICON */ -- __sbit __at 0xD8+3 INT6; -- __sbit __at 0xD8+4 RESI; -- __sbit __at 0xD8+5 ERESI; -- __sbit __at 0xD8+7 SMOD1; -+ __sbit __at (0xD8+3) INT6; -+ __sbit __at (0xD8+4) RESI; -+ __sbit __at (0xD8+5) ERESI; -+ __sbit __at (0xD8+7) SMOD1; - __sfr __at 0xE0 ACC; - __sfr __at 0xE8 EIE; // EIE Bit Values differ from Reg320 - /* EIE */ -- __sbit __at 0xE8+0 EUSB; -- __sbit __at 0xE8+1 EI2C; -- __sbit __at 0xE8+2 EIEX4; -- __sbit __at 0xE8+3 EIEX5; -- __sbit __at 0xE8+4 EIEX6; -+ __sbit __at (0xE8+0) EUSB; -+ __sbit __at (0xE8+1) EI2C; -+ __sbit __at (0xE8+2) EIEX4; -+ __sbit __at (0xE8+3) EIEX5; -+ __sbit __at (0xE8+4) EIEX6; - __sfr __at 0xF0 B; - __sfr __at 0xF8 EIP; // EIP Bit Values differ from Reg320 - /* EIP */ -- __sbit __at 0xF8+0 PUSB; -- __sbit __at 0xF8+1 PI2C; -- __sbit __at 0xF8+2 EIPX4; -- __sbit __at 0xF8+3 EIPX5; -- __sbit __at 0xF8+4 EIPX6; -+ __sbit __at (0xF8+0) PUSB; -+ __sbit __at (0xF8+1) PI2C; -+ __sbit __at (0xF8+2) EIPX4; -+ __sbit __at (0xF8+3) EIPX5; -+ __sbit __at (0xF8+4) EIPX6; - - - /* CPU Control & Status Register (CPUCS) */ -commit 5aab87d358a4585a10ad89277bb88ad139077abd -Author: Matthew Cengia <mattcen@mattcen.com> -Date: Tue Aug 15 10:38:34 2023 +1000 - - 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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --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 <autovector.h> - --void usbreset_isr() __interrupt USBRESET_ISR {} -+void usbreset_isr() __interrupt(USBRESET_ISR) {} - -commit 3e08500d22f87f69941b65cf8b8c1b85f9b41173 -Author: Matthew Cengia <mattcen@mattcen.com> -Date: Tue Aug 15 10:39:32 2023 +1000 - - fx2lafw: 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 sigrok fx2lafw application source to unbreak compilation with - more recent SDCC versions. - -diff --git a/fx2lafw.c b/fx2lafw.c -index 1035713..4212921 100644 ---- a/fx2lafw.c -+++ b/fx2lafw.c -@@ -191,14 +191,14 @@ BOOL handle_set_configuration(BYTE cfg) - return (cfg == 1) ? TRUE : FALSE; - } - --void sudav_isr(void) __interrupt SUDAV_ISR -+void sudav_isr(void) __interrupt(SUDAV_ISR) - { - got_sud = TRUE; - CLEAR_SUDAV(); - } - - /* IN BULK NAK - the host started requesting data. */ --void ibn_isr(void) __interrupt IBN_ISR -+void ibn_isr(void) __interrupt(IBN_ISR) - { - /* - * If the IBN interrupt is not disabled, clearing -@@ -229,19 +229,19 @@ void ibn_isr(void) __interrupt IBN_ISR - SYNCDELAY(); - } - --void usbreset_isr(void) __interrupt USBRESET_ISR -+void usbreset_isr(void) __interrupt(USBRESET_ISR) - { - handle_hispeed(FALSE); - CLEAR_USBRESET(); - } - --void hispeed_isr(void) __interrupt HISPEED_ISR -+void hispeed_isr(void) __interrupt(HISPEED_ISR) - { - handle_hispeed(TRUE); - CLEAR_HISPEED(); - } - --void timer2_isr(void) __interrupt TF2_ISR -+void timer2_isr(void) __interrupt(TF2_ISR) - { - /* Blink LED during acquisition, keep it on otherwise. */ - if (gpif_acquiring == RUNNING) { -diff --git a/include/scope.inc b/include/scope.inc -index 96422f1..c699085 100644 ---- a/include/scope.inc -+++ b/include/scope.inc -@@ -43,36 +43,36 @@ static volatile __bit dosuspend = FALSE; - extern __code BYTE highspd_dscr; - extern __code BYTE fullspd_dscr; - --void resume_isr(void) __interrupt RESUME_ISR -+void resume_isr(void) __interrupt(RESUME_ISR) - { - CLEAR_RESUME(); - } - --void sudav_isr(void) __interrupt SUDAV_ISR -+void sudav_isr(void) __interrupt(SUDAV_ISR) - { - dosud = TRUE; - CLEAR_SUDAV(); - } - --void usbreset_isr(void) __interrupt USBRESET_ISR -+void usbreset_isr(void) __interrupt(USBRESET_ISR) - { - handle_hispeed(FALSE); - CLEAR_USBRESET(); - } - --void hispeed_isr(void) __interrupt HISPEED_ISR -+void hispeed_isr(void) __interrupt(HISPEED_ISR) - { - handle_hispeed(TRUE); - CLEAR_HISPEED(); - } - --void suspend_isr(void) __interrupt SUSPEND_ISR -+void suspend_isr(void) __interrupt(SUSPEND_ISR) - { - dosuspend = TRUE; - CLEAR_SUSPEND(); - } - --void timer2_isr(void) __interrupt TF2_ISR -+void timer2_isr(void) __interrupt(TF2_ISR) - { - /* Toggle the probe calibration pin, only accurate up to ca. 8MHz. */ - TOGGLE_CALIBRATION_PIN(); diff --git a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r1.ebuild b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r2.ebuild index de483035dbf7..d6b183e8f11e 100644 --- a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r1.ebuild +++ b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.7-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -7,11 +7,15 @@ SDCC_DEPEND=">=dev-embedded/sdcc-3.4.0[device-lib(+),mcs51(+),sdcpp(+)]" if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="git://sigrok.org/${PN}" - IUSE="" inherit git-r3 autotools else - SRC_URI="binary? ( https://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz ) - !binary? ( https://sigrok.org/download/source/${PN}/${P}.tar.gz )" + SRC_URI=" + binary? ( https://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz ) + !binary? ( + https://sigrok.org/download/source/${PN}/${P}.tar.gz + https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}-update-syntax.patch.xz + ) + " KEYWORDS="~amd64 ~x86" IUSE="binary" SDCC_DEPEND="!binary? ( ${SDCC_DEPEND} )" @@ -23,21 +27,23 @@ HOMEPAGE="https://sigrok.org/wiki/Fx2lafw" LICENSE="GPL-2+" SLOT="0" -RDEPEND="" -DEPEND="${RDEPEND} - ${SDCC_DEPEND}" +DEPEND="${SDCC_DEPEND}" -PATCHES=( - "${FILESDIR}"/${PN}-update-syntax.patch -) +PATCHES=() src_unpack() { if [[ ${PV} == "9999" ]]; then git-r3_src_unpack else default - # The binary & source dirs are slightly diff. - use binary && S="${WORKDIR}/${PN}-bin-${PV}" + if use binary; then + # The binary & source dirs are slightly diff. + S="${WORKDIR}/${PN}-bin-${PV}" + else + PATCHES+=( + "${WORKDIR}"/${P}-update-syntax.patch + ) + fi fi } diff --git a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild index a972680d11ba..d6b183e8f11e 100644 --- a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild +++ b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -7,11 +7,15 @@ SDCC_DEPEND=">=dev-embedded/sdcc-3.4.0[device-lib(+),mcs51(+),sdcpp(+)]" if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="git://sigrok.org/${PN}" - IUSE="" inherit git-r3 autotools else - SRC_URI="binary? ( https://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz ) - !binary? ( https://sigrok.org/download/source/${PN}/${P}.tar.gz )" + SRC_URI=" + binary? ( https://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz ) + !binary? ( + https://sigrok.org/download/source/${PN}/${P}.tar.gz + https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}-update-syntax.patch.xz + ) + " KEYWORDS="~amd64 ~x86" IUSE="binary" SDCC_DEPEND="!binary? ( ${SDCC_DEPEND} )" @@ -23,17 +27,23 @@ HOMEPAGE="https://sigrok.org/wiki/Fx2lafw" LICENSE="GPL-2+" SLOT="0" -RDEPEND="" -DEPEND="${RDEPEND} - ${SDCC_DEPEND}" +DEPEND="${SDCC_DEPEND}" + +PATCHES=() src_unpack() { if [[ ${PV} == "9999" ]]; then git-r3_src_unpack else default - # The binary & source dirs are slightly diff. - use binary && S="${WORKDIR}/${PN}-bin-${PV}" + if use binary; then + # The binary & source dirs are slightly diff. + S="${WORKDIR}/${PN}-bin-${PV}" + else + PATCHES+=( + "${WORKDIR}"/${P}-update-syntax.patch + ) + fi fi } |