DSP281x_SWPrioritizedIsrLevels.h
上传用户:qingfan3
上传日期:2014-10-27
资源大小:31439k
文件大小:144k
源码类别:
DSP编程
开发平台:
C/C++
- //###########################################################################
- //
- // FILE: DSP281x_SWPrioritizedIsrLevels.h
- //
- // TITLE: DSP28 Devices Software Prioritized Interrupt Service Routine
- // Level definitions.
- //
- //###########################################################################
- //
- // Original Author: A.T.
- //
- // Ver | dd mmm yyyy | Who | Description of changes
- // =====|=============|======|===============================================
- // 1.00| 11 Sep 2003 | L.H. | Changes since previous version (v.58 Alpha)
- // | | | No functional change from original by A.T.
- // | | | Version aligned with other files
- //###########################################################################
- #ifndef DSP281x_SW_PRIORITZIED_ISR_H
- #define DSP281x_SW_PRIORITZIED_ISR_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- //-------------------------------------------------------------------------------
- // Interrupt Enable Register Allocation For F2810/12 Devices:
- //-------------------------------------------------------------------------------
- // Interrupts can be enabled/disabled using the CPU interrupt enable register
- // (IER) and the PIE interrupt enable registers (PIIER1 to PIEIER12). The table
- // below lists the allocation of the various interrupts to these registers:
- //
- //-----------------------------------------------------------------------------------
- // CPU | PIEIER1 to PIEIER12 |
- // IER | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
- // =====|=========|=========|=========|=========|=========|=========|=======|=======|
- // INT1 |PDPINTA |PDPINTB | resvd | XINT1 | XINT2 |ADCINT | TINT0 |WAKEINT|
- // | (EV-A) | (EV-B) | | | | | | |
- // INT2 |CMP1INT |CMP2INT |CMP3INT |T1PINT |T1CINT |T1UFINT |T1OFINT| resvd |
- // | (EV-A) | (EV-A) |(EV-A) |(EV-A) |(EV-A) |(EV-A) |(EV-A) | |
- // INT3 |T2PINT |T2CINT |T2UFINT |T2OFINT |CAPINT1 |CAPINT2 |CAPINT3| resvd |
- // | (EV-A) | (EV-A) |(EV-A) |(EV-A) |(EV-A) |(EV-A) |(EV-A) | |
- // INT4 |CMP4INT |CMP5INT |CMP6INT |T3PINT |T3CINT |T3UFINT |T3OFINT| resvd |
- // | (EV-B) | (EV-B) |(EV-B) |(EV-B) |(EV-B) |(EV-B) |(EV-B) | |
- // INT5 |T4PINT |T4CINT |T4UFINT |T4OFINT |CAPINT4 |CAPINT5 |CAPINT6| resvd |
- // | (EV-B) | (EV-B) |(EV-B) |(EV-B) |(EV-B) |(EV-B) |(EV-B) | |
- // INT6 |SPIRXINTA|SPITXINTA| resvd | resvd | MRINTA | MXINTA | resvd | resvd |
- // | (SPI-A) | (SPI-A) | | |(McBSP-A)|(McBSP-A)| | |
- // INT7 | resvd | resvd | resvd | resvd | resvd | resvd | resvd | resvd |
- // INT8 | resvd | resvd | resvd | resvd | resvd | resvd | resvd | resvd |
- // INT9 |SCIRXINTA|SCITXINTA|SCIRXINTB|SCITXINTB|ECAN0INTA|ECAN1INTA| resvd | resvd |
- // | (SCI-A) | (SCI-A) |(SCI-B) |(SCI-B) |(ECAN-A) |(ECAN-A) | | |
- // INT10| resvd | resvd | resvd | resvd | resvd | resvd | resvd | resvd |
- // INT11| resvd | resvd | resvd | resvd | resvd | resvd | resvd | resvd |
- // INT12| resvd | resvd | resvd | resvd | resvd | resvd | resvd | resvd |
- //-------------------------------------------------------------------------------
- // INT13| INT13
- // INT14| INT14
- // INT15| DATALOG
- // INT16| RTOSINT
- //-------------------------------------------------------------------------------
- //
- //-------------------------------------------------------------------------------
- // Set "Global" Interrupt Priority Level (IER register):
- //-------------------------------------------------------------------------------
- // The user must set the appropriate priority level for each of the CPU
- // interrupts. This is termed as the "global" priority. The priority level
- // must be a number between 1 (highest) to 16 (lowest). A value of 0 must
- // be entered for reserved interrupts or interrupts that are not used. This
- // will also reduce code size by not including ISR's that are not used.
- //
- // Note: The priority levels below are used to calculate the IER register
- // interrupt masks MINT1 to MINT16.
- //
- //
- // Note: The priority levels shown here may not make sense in a
- // real application. This is for demonstration purposes only!!!
- //
- // The user should change these to values that make sense for
- // their application.
- //
- // 0 = not used
- // 1 = highest priority
- // ...
- // 16 = lowest priority
- #define INT1PL 2 // Group1 Interrupts (PIEIER1)
- #define INT2PL 1 // Group2 Interrupts (PIEIER2)
- #define INT3PL 4 // Group3 Interrupts (PIEIER3)
- #define INT4PL 2 // Group4 Interrupts (PIEIER4)
- #define INT5PL 2 // Group5 Interrupts (PIEIER5)
- #define INT6PL 3 // Group6 Interrupts (PIEIER6)
- #define INT7PL 0 // reserved
- #define INT8PL 0 // reserved
- #define INT9PL 3 // Group9 Interrupts (PIEIER9)
- #define INT10PL 0 // reserved
- #define INT11PL 0 // reserved
- #define INT12PL 0 // reserved
- #define INT13PL 4 // XINT3
- #define INT14PL 4 // INT14 (TINT2)
- #define INT15PL 4 // DATALOG
- #define INT16PL 4 // RTOSINT
- //-------------------------------------------------------------------------------
- // Set "Group" Interrupt Priority Level (PIEIER1 to PIEIER12 registers):
- //-------------------------------------------------------------------------------
- // The user must set the appropriate priority level for each of the PIE
- // interrupts. This is termed as the "group" priority. The priority level
- // must be a number between 1 (highest) to 8 (lowest). A value of 0 must
- // be entered for reserved interrupts or interrupts that are not used. This
- // will also reduce code size by not including ISR's that are not used:
- //
- // Note: The priority levels below are used to calculate the following
- // PIEIER register interrupt masks:
- // MG11 to MG18
- // MG21 to MG28
- // MG31 to MG38
- // MG41 to MG48
- // MG51 to MG58
- // MG61 to MG68
- // MG71 to MG78
- // MG81 to MG88
- // MG91 to MG98
- // MG101 to MG108
- // MG111 to MG118
- // MG121 to MG128
- //
- // Note: The priority levels shown here may not make sense in a
- // real application. This is for demonstration purposes only!!!
- //
- // The user should change these to values that make sense for
- // their application.
- //
- // 0 = not used
- // 1 = highest priority
- // ...
- // 8 = lowest priority
- //
- #define G11PL 7 // PDPINTA (EV-A)
- #define G12PL 6 // PDPINTB (EV-B)
- #define G13PL 0 // reserved
- #define G14PL 1 // XINT1 (External)
- #define G15PL 3 // XINT2 (External)
- #define G16PL 2 // ADCINT (ADC)
- #define G17PL 1 // TINT0 (CPU Timer 0)
- #define G18PL 5 // WAKEINT (WD/LPM)
- #define G21PL 4 // CMP1INT (EV-A)
- #define G22PL 3 // CMP2INT (EV-A)
- #define G23PL 2 // CMP3INT (EV-A)
- #define G24PL 1 // T1PINT (EV-A)
- #define G25PL 5 // T1CINT (EV-A)
- #define G26PL 6 // T1UFINT (EV-A)
- #define G27PL 7 // T1OFINT (EV-A)
- #define G28PL 0 // reserved
- #define G31PL 4 // T2PINT (EV-A)
- #define G32PL 1 // T2CINT (EV-A)
- #define G33PL 1 // T2UFINT (EV-A)
- #define G34PL 2 // T2OFINT (EV-A)
- #define G35PL 2 // CAPINT1 (EV-A)
- #define G36PL 1 // CAPINT2 (EV-A)
- #define G37PL 3 // CAPINT3 (EV-A)
- #define G38PL 0 // reserved
- #define G41PL 2 // CMP4INT (EV-B)
- #define G42PL 1 // CMP5INT (EV-B)
- #define G43PL 3 // CMP6INT (EV-B)
- #define G44PL 3 // T3PINT (EV-B)
- #define G45PL 2 // T3CINT (EV-B)
- #define G46PL 2 // T3UFINT (EV-B)
- #define G47PL 1 // T3OFINT (EV-B)
- #define G48PL 0 // reserved
- #define G51PL 1 // T4PINT (EV-B)
- #define G52PL 7 // T4CINT (EV-B)
- #define G53PL 2 // T4UFINT (EV-B)
- #define G54PL 6 // T4OFINT (EV-B)
- #define G55PL 5 // CAPINT4 (EV-B)
- #define G56PL 6 // CAPINT5 (EV-B)
- #define G57PL 7 // CAPINT6 (EV-B)
- #define G58PL 0 // reserved
- #define G61PL 3 // SPIRXINTA (SPI-A)
- #define G62PL 1 // SPITXINTA (SPI-A)
- #define G63PL 0 // reserved
- #define G64PL 0 // reserved
- #define G65PL 2 // MRINTA (McBSP-A)
- #define G66PL 1 // MXINTA (McBSP-A)
- #define G67PL 0 // reserved
- #define G68PL 0 // reserved
- #define G71PL 0 // reserved
- #define G72PL 0 // reserved
- #define G73PL 0 // reserved
- #define G74PL 0 // reserved
- #define G75PL 0 // reserved
- #define G76PL 0 // reserved
- #define G77PL 0 // reserved
- #define G78PL 0 // reserved
- #define G81PL 0 // reserved
- #define G82PL 0 // reserved
- #define G83PL 0 // reserved
- #define G84PL 0 // reserved
- #define G85PL 0 // reserved
- #define G86PL 0 // reserved
- #define G87PL 0 // reserved
- #define G88PL 0 // reserved
- #define G91PL 1 // SCIRXINTA (SCI-A)
- #define G92PL 5 // SCITXINTA (SCI-A)
- #define G93PL 3 // SCIRXINTB (SCI-B)
- #define G94PL 4 // SCITXINTB (SCI-B)
- #define G95PL 1 // ECAN0INTA (ECAN-A)
- #define G96PL 1 // ECAN1INTA (ECAN-A)
- #define G97PL 0 // reserved
- #define G98PL 0 // reserved
- #define G101PL 0 // reserved
- #define G102PL 0 // reserved
- #define G103PL 0 // reserved
- #define G104PL 0 // reserved
- #define G105PL 0 // reserved
- #define G106PL 0 // reserved
- #define G107PL 0 // reserved
- #define G108PL 0 // reserved
- #define G111PL 0 // reserved
- #define G112PL 0 // reserved
- #define G113PL 0 // reserved
- #define G114PL 0 // reserved
- #define G115PL 0 // reserved
- #define G116PL 0 // reserved
- #define G117PL 0 // reserved
- #define G118PL 0 // reserved
- #define G121PL 0 // reserved
- #define G122PL 0 // reserved
- #define G123PL 0 // reserved
- #define G124PL 0 // reserved
- #define G125PL 0 // reserved
- #define G126PL 0 // reserved
- #define G127PL 0 // reserved
- #define G128PL 0 // reserved
- // There should be no need to modify code below this line
- //-------------------------------------------------------------------------------
- // Automatically generate IER interrupt masks MINT1 to MINT16:
- //
- // Beginning of MINT1:
- #if (INT1PL == 0)
- #define MINT1_1PL ~(1 << 0)
- #else
- #define MINT1_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT1PL) || (INT2PL == 0)
- #define MINT1_2PL ~(1 << 1)
- #else
- #define MINT1_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT1PL) || (INT3PL == 0)
- #define MINT1_3PL ~(1 << 2)
- #else
- #define MINT1_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT1PL) || (INT4PL == 0)
- #define MINT1_4PL ~(1 << 3)
- #else
- #define MINT1_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT1PL) || (INT5PL == 0)
- #define MINT1_5PL ~(1 << 4)
- #else
- #define MINT1_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT1PL) || (INT6PL == 0)
- #define MINT1_6PL ~(1 << 5)
- #else
- #define MINT1_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT1PL) || (INT7PL == 0)
- #define MINT1_7PL ~(1 << 6)
- #else
- #define MINT1_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT1PL) || (INT8PL == 0)
- #define MINT1_8PL ~(1 << 7)
- #else
- #define MINT1_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT1PL) || (INT9PL == 0)
- #define MINT1_9PL ~(1 << 8)
- #else
- #define MINT1_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT1PL) || (INT10PL == 0)
- #define MINT1_10PL ~(1 << 9)
- #else
- #define MINT1_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT1PL) || (INT11PL == 0)
- #define MINT1_11PL ~(1 << 10)
- #else
- #define MINT1_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT1PL) || (INT12PL == 0)
- #define MINT1_12PL ~(1 << 11)
- #else
- #define MINT1_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT1PL) || (INT13PL == 0)
- #define MINT1_13PL ~(1 << 12)
- #else
- #define MINT1_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT1PL) || (INT14PL == 0)
- #define MINT1_14PL ~(1 << 13)
- #else
- #define MINT1_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT1PL) || (INT15PL == 0)
- #define MINT1_15PL ~(1 << 14)
- #else
- #define MINT1_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT1PL) || (INT16PL == 0)
- #define MINT1_16PL ~(1 << 15)
- #else
- #define MINT1_16PL 0xFFFF
- #endif
- #define MINT1 (MINT1_1PL & MINT1_2PL & MINT1_3PL & MINT1_4PL &
- MINT1_5PL & MINT1_6PL & MINT1_7PL & MINT1_8PL &
- MINT1_9PL & MINT1_10PL & MINT1_11PL & MINT1_12PL &
- MINT1_13PL & MINT1_14PL & MINT1_15PL & MINT1_16PL)
- // End Of MINT1.
- // Beginning of MINT2:
- #if (INT1PL >= INT2PL) || (INT1PL == 0)
- #define MINT2_1PL ~(1 << 0)
- #else
- #define MINT2_1PL 0xFFFF
- #endif
- #if (INT2PL == 0)
- #define MINT2_2PL ~(1 << 1)
- #else
- #define MINT2_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT2PL) || (INT3PL == 0)
- #define MINT2_3PL ~(1 << 2)
- #else
- #define MINT2_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT2PL) || (INT4PL == 0)
- #define MINT2_4PL ~(1 << 3)
- #else
- #define MINT2_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT2PL) || (INT5PL == 0)
- #define MINT2_5PL ~(1 << 4)
- #else
- #define MINT2_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT2PL) || (INT6PL == 0)
- #define MINT2_6PL ~(1 << 5)
- #else
- #define MINT2_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT2PL) || (INT7PL == 0)
- #define MINT2_7PL ~(1 << 6)
- #else
- #define MINT2_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT2PL) || (INT8PL == 0)
- #define MINT2_8PL ~(1 << 7)
- #else
- #define MINT2_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT2PL) || (INT9PL == 0)
- #define MINT2_9PL ~(1 << 8)
- #else
- #define MINT2_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT2PL) || (INT10PL == 0)
- #define MINT2_10PL ~(1 << 9)
- #else
- #define MINT2_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT2PL) || (INT11PL == 0)
- #define MINT2_11PL ~(1 << 10)
- #else
- #define MINT2_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT2PL) || (INT12PL == 0)
- #define MINT2_12PL ~(1 << 11)
- #else
- #define MINT2_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT2PL) || (INT13PL == 0)
- #define MINT2_13PL ~(1 << 12)
- #else
- #define MINT2_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT2PL) || (INT14PL == 0)
- #define MINT2_14PL ~(1 << 13)
- #else
- #define MINT2_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT2PL) || (INT15PL == 0)
- #define MINT2_15PL ~(1 << 14)
- #else
- #define MINT2_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT2PL) || (INT16PL == 0)
- #define MINT2_16PL ~(1 << 15)
- #else
- #define MINT2_16PL 0xFFFF
- #endif
- #define MINT2 (MINT2_1PL & MINT2_2PL & MINT2_3PL & MINT2_4PL &
- MINT2_5PL & MINT2_6PL & MINT2_7PL & MINT2_8PL &
- MINT2_9PL & MINT2_10PL & MINT2_11PL & MINT2_12PL &
- MINT2_13PL & MINT2_14PL & MINT2_15PL & MINT2_16PL)
- // End Of MINT2.
- // Beginning of MINT3:
- #if (INT1PL >= INT3PL) || (INT1PL == 0)
- #define MINT3_1PL ~(1 << 0)
- #else
- #define MINT3_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT3PL) || (INT2PL == 0)
- #define MINT3_2PL ~(1 << 1)
- #else
- #define MINT3_2PL 0xFFFF
- #endif
- #if (INT3PL == 0)
- #define MINT3_3PL ~(1 << 2)
- #else
- #define MINT3_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT3PL) || (INT4PL == 0)
- #define MINT3_4PL ~(1 << 3)
- #else
- #define MINT3_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT3PL) || (INT5PL == 0)
- #define MINT3_5PL ~(1 << 4)
- #else
- #define MINT3_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT3PL) || (INT6PL == 0)
- #define MINT3_6PL ~(1 << 5)
- #else
- #define MINT3_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT3PL) || (INT7PL == 0)
- #define MINT3_7PL ~(1 << 6)
- #else
- #define MINT3_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT3PL) || (INT8PL == 0)
- #define MINT3_8PL ~(1 << 7)
- #else
- #define MINT3_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT3PL) || (INT9PL == 0)
- #define MINT3_9PL ~(1 << 8)
- #else
- #define MINT3_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT3PL) || (INT10PL == 0)
- #define MINT3_10PL ~(1 << 9)
- #else
- #define MINT3_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT3PL) || (INT11PL == 0)
- #define MINT3_11PL ~(1 << 10)
- #else
- #define MINT3_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT3PL) || (INT12PL == 0)
- #define MINT3_12PL ~(1 << 11)
- #else
- #define MINT3_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT3PL) || (INT13PL == 0)
- #define MINT3_13PL ~(1 << 12)
- #else
- #define MINT3_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT3PL) || (INT14PL == 0)
- #define MINT3_14PL ~(1 << 13)
- #else
- #define MINT3_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT3PL) || (INT15PL == 0)
- #define MINT3_15PL ~(1 << 14)
- #else
- #define MINT3_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT3PL) || (INT16PL == 0)
- #define MINT3_16PL ~(1 << 15)
- #else
- #define MINT3_16PL 0xFFFF
- #endif
- #define MINT3 (MINT3_1PL & MINT3_2PL & MINT3_3PL & MINT3_4PL &
- MINT3_5PL & MINT3_6PL & MINT3_7PL & MINT3_8PL &
- MINT3_9PL & MINT3_10PL & MINT3_11PL & MINT3_12PL &
- MINT3_13PL & MINT3_14PL & MINT3_15PL & MINT3_16PL)
- // End Of MINT3.
- // Beginning of MINT4:
- #if (INT1PL >= INT4PL) || (INT1PL == 0)
- #define MINT4_1PL ~(1 << 0)
- #else
- #define MINT4_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT4PL) || (INT2PL == 0)
- #define MINT4_2PL ~(1 << 1)
- #else
- #define MINT4_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT4PL) || (INT3PL == 0)
- #define MINT4_3PL ~(1 << 2)
- #else
- #define MINT4_3PL 0xFFFF
- #endif
- #if (INT4PL == 0)
- #define MINT4_4PL ~(1 << 3)
- #else
- #define MINT4_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT4PL) || (INT5PL == 0)
- #define MINT4_5PL ~(1 << 4)
- #else
- #define MINT4_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT4PL) || (INT6PL == 0)
- #define MINT4_6PL ~(1 << 5)
- #else
- #define MINT4_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT4PL) || (INT7PL == 0)
- #define MINT4_7PL ~(1 << 6)
- #else
- #define MINT4_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT4PL) || (INT8PL == 0)
- #define MINT4_8PL ~(1 << 7)
- #else
- #define MINT4_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT4PL) || (INT9PL == 0)
- #define MINT4_9PL ~(1 << 8)
- #else
- #define MINT4_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT4PL) || (INT10PL == 0)
- #define MINT4_10PL ~(1 << 9)
- #else
- #define MINT4_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT4PL) || (INT11PL == 0)
- #define MINT4_11PL ~(1 << 10)
- #else
- #define MINT4_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT4PL) || (INT12PL == 0)
- #define MINT4_12PL ~(1 << 11)
- #else
- #define MINT4_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT4PL) || (INT13PL == 0)
- #define MINT4_13PL ~(1 << 12)
- #else
- #define MINT4_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT4PL) || (INT14PL == 0)
- #define MINT4_14PL ~(1 << 13)
- #else
- #define MINT4_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT4PL) || (INT15PL == 0)
- #define MINT4_15PL ~(1 << 14)
- #else
- #define MINT4_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT4PL) || (INT16PL == 0)
- #define MINT4_16PL ~(1 << 15)
- #else
- #define MINT4_16PL 0xFFFF
- #endif
- #define MINT4 (MINT4_1PL & MINT4_2PL & MINT4_3PL & MINT4_4PL &
- MINT4_5PL & MINT4_6PL & MINT4_7PL & MINT4_8PL &
- MINT4_9PL & MINT4_10PL & MINT4_11PL & MINT4_12PL &
- MINT4_13PL & MINT4_14PL & MINT4_15PL & MINT4_16PL)
- // End Of MINT4.
- // Beginning of MINT5:
- #if (INT1PL >= INT5PL) || (INT1PL == 0)
- #define MINT5_1PL ~(1 << 0)
- #else
- #define MINT5_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT5PL) || (INT2PL == 0)
- #define MINT5_2PL ~(1 << 1)
- #else
- #define MINT5_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT5PL) || (INT3PL == 0)
- #define MINT5_3PL ~(1 << 2)
- #else
- #define MINT5_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT5PL) || (INT4PL == 0)
- #define MINT5_4PL ~(1 << 3)
- #else
- #define MINT5_4PL 0xFFFF
- #endif
- #if (INT5PL == 0)
- #define MINT5_5PL ~(1 << 4)
- #else
- #define MINT5_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT5PL) || (INT6PL == 0)
- #define MINT5_6PL ~(1 << 5)
- #else
- #define MINT5_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT5PL) || (INT7PL == 0)
- #define MINT5_7PL ~(1 << 6)
- #else
- #define MINT5_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT5PL) || (INT8PL == 0)
- #define MINT5_8PL ~(1 << 7)
- #else
- #define MINT5_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT5PL) || (INT9PL == 0)
- #define MINT5_9PL ~(1 << 8)
- #else
- #define MINT5_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT5PL) || (INT10PL == 0)
- #define MINT5_10PL ~(1 << 9)
- #else
- #define MINT5_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT5PL) || (INT11PL == 0)
- #define MINT5_11PL ~(1 << 10)
- #else
- #define MINT5_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT5PL) || (INT12PL == 0)
- #define MINT5_12PL ~(1 << 11)
- #else
- #define MINT5_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT5PL) || (INT13PL == 0)
- #define MINT5_13PL ~(1 << 12)
- #else
- #define MINT5_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT5PL) || (INT14PL == 0)
- #define MINT5_14PL ~(1 << 13)
- #else
- #define MINT5_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT5PL) || (INT15PL == 0)
- #define MINT5_15PL ~(1 << 14)
- #else
- #define MINT5_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT5PL) || (INT16PL == 0)
- #define MINT5_16PL ~(1 << 15)
- #else
- #define MINT5_16PL 0xFFFF
- #endif
- #define MINT5 (MINT5_1PL & MINT5_2PL & MINT5_3PL & MINT5_4PL &
- MINT5_5PL & MINT5_6PL & MINT5_7PL & MINT5_8PL &
- MINT5_9PL & MINT5_10PL & MINT5_11PL & MINT5_12PL &
- MINT5_13PL & MINT5_14PL & MINT5_15PL & MINT5_16PL)
- // End Of MINT5.
- // Beginning of MINT6:
- #if (INT1PL >= INT6PL) || (INT1PL == 0)
- #define MINT6_1PL ~(1 << 0)
- #else
- #define MINT6_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT6PL) || (INT2PL == 0)
- #define MINT6_2PL ~(1 << 1)
- #else
- #define MINT6_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT6PL) || (INT3PL == 0)
- #define MINT6_3PL ~(1 << 2)
- #else
- #define MINT6_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT6PL) || (INT4PL == 0)
- #define MINT6_4PL ~(1 << 3)
- #else
- #define MINT6_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT6PL) || (INT5PL == 0)
- #define MINT6_5PL ~(1 << 4)
- #else
- #define MINT6_5PL 0xFFFF
- #endif
- #if (INT6PL == 0)
- #define MINT6_6PL ~(1 << 5)
- #else
- #define MINT6_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT6PL) || (INT7PL == 0)
- #define MINT6_7PL ~(1 << 6)
- #else
- #define MINT6_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT6PL) || (INT8PL == 0)
- #define MINT6_8PL ~(1 << 7)
- #else
- #define MINT6_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT6PL) || (INT9PL == 0)
- #define MINT6_9PL ~(1 << 8)
- #else
- #define MINT6_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT6PL) || (INT10PL == 0)
- #define MINT6_10PL ~(1 << 9)
- #else
- #define MINT6_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT6PL) || (INT11PL == 0)
- #define MINT6_11PL ~(1 << 10)
- #else
- #define MINT6_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT6PL) || (INT12PL == 0)
- #define MINT6_12PL ~(1 << 11)
- #else
- #define MINT6_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT6PL) || (INT13PL == 0)
- #define MINT6_13PL ~(1 << 12)
- #else
- #define MINT6_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT6PL) || (INT14PL == 0)
- #define MINT6_14PL ~(1 << 13)
- #else
- #define MINT6_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT6PL) || (INT15PL == 0)
- #define MINT6_15PL ~(1 << 14)
- #else
- #define MINT6_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT6PL) || (INT16PL == 0)
- #define MINT6_16PL ~(1 << 15)
- #else
- #define MINT6_16PL 0xFFFF
- #endif
- #define MINT6 (MINT6_1PL & MINT6_2PL & MINT6_3PL & MINT6_4PL &
- MINT6_5PL & MINT6_6PL & MINT6_7PL & MINT6_8PL &
- MINT6_9PL & MINT6_10PL & MINT6_11PL & MINT6_12PL &
- MINT6_13PL & MINT6_14PL & MINT6_15PL & MINT6_16PL)
- // End Of MINT6.
- // Beginning of MINT7:
- #if (INT1PL >= INT7PL) || (INT1PL == 0)
- #define MINT7_1PL ~(1 << 0)
- #else
- #define MINT7_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT7PL) || (INT2PL == 0)
- #define MINT7_2PL ~(1 << 1)
- #else
- #define MINT7_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT7PL) || (INT3PL == 0)
- #define MINT7_3PL ~(1 << 2)
- #else
- #define MINT7_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT7PL) || (INT4PL == 0)
- #define MINT7_4PL ~(1 << 3)
- #else
- #define MINT7_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT7PL) || (INT5PL == 0)
- #define MINT7_5PL ~(1 << 4)
- #else
- #define MINT7_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT7PL) || (INT6PL == 0)
- #define MINT7_6PL ~(1 << 5)
- #else
- #define MINT7_6PL 0xFFFF
- #endif
- #if (INT7PL == 0)
- #define MINT7_7PL ~(1 << 6)
- #else
- #define MINT7_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT7PL) || (INT8PL == 0)
- #define MINT7_8PL ~(1 << 7)
- #else
- #define MINT7_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT7PL) || (INT9PL == 0)
- #define MINT7_9PL ~(1 << 8)
- #else
- #define MINT7_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT7PL) || (INT10PL == 0)
- #define MINT7_10PL ~(1 << 9)
- #else
- #define MINT7_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT7PL) || (INT11PL == 0)
- #define MINT7_11PL ~(1 << 10)
- #else
- #define MINT7_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT7PL) || (INT12PL == 0)
- #define MINT7_12PL ~(1 << 11)
- #else
- #define MINT7_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT7PL) || (INT13PL == 0)
- #define MINT7_13PL ~(1 << 12)
- #else
- #define MINT7_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT7PL) || (INT14PL == 0)
- #define MINT7_14PL ~(1 << 13)
- #else
- #define MINT7_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT7PL) || (INT15PL == 0)
- #define MINT7_15PL ~(1 << 14)
- #else
- #define MINT7_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT7PL) || (INT16PL == 0)
- #define MINT7_16PL ~(1 << 15)
- #else
- #define MINT7_16PL 0xFFFF
- #endif
- #define MINT7 (MINT7_1PL & MINT7_2PL & MINT7_3PL & MINT7_4PL &
- MINT7_5PL & MINT7_6PL & MINT7_7PL & MINT7_8PL &
- MINT7_9PL & MINT7_10PL & MINT7_11PL & MINT7_12PL &
- MINT7_13PL & MINT7_14PL & MINT7_15PL & MINT7_16PL)
- // End Of MINT7.
- // Beginning of MINT8:
- #if (INT1PL >= INT8PL) || (INT1PL == 0)
- #define MINT8_1PL ~(1 << 0)
- #else
- #define MINT8_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT8PL) || (INT2PL == 0)
- #define MINT8_2PL ~(1 << 1)
- #else
- #define MINT8_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT8PL) || (INT3PL == 0)
- #define MINT8_3PL ~(1 << 2)
- #else
- #define MINT8_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT8PL) || (INT4PL == 0)
- #define MINT8_4PL ~(1 << 3)
- #else
- #define MINT8_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT8PL) || (INT5PL == 0)
- #define MINT8_5PL ~(1 << 4)
- #else
- #define MINT8_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT8PL) || (INT6PL == 0)
- #define MINT8_6PL ~(1 << 5)
- #else
- #define MINT8_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT8PL) || (INT7PL == 0)
- #define MINT8_7PL ~(1 << 6)
- #else
- #define MINT8_7PL 0xFFFF
- #endif
- #if (INT8PL == 0)
- #define MINT8_8PL ~(1 << 7)
- #else
- #define MINT8_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT8PL) || (INT9PL == 0)
- #define MINT8_9PL ~(1 << 8)
- #else
- #define MINT8_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT8PL) || (INT10PL == 0)
- #define MINT8_10PL ~(1 << 9)
- #else
- #define MINT8_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT8PL) || (INT11PL == 0)
- #define MINT8_11PL ~(1 << 10)
- #else
- #define MINT8_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT8PL) || (INT12PL == 0)
- #define MINT8_12PL ~(1 << 11)
- #else
- #define MINT8_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT8PL) || (INT13PL == 0)
- #define MINT8_13PL ~(1 << 12)
- #else
- #define MINT8_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT8PL) || (INT14PL == 0)
- #define MINT8_14PL ~(1 << 13)
- #else
- #define MINT8_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT8PL) || (INT15PL == 0)
- #define MINT8_15PL ~(1 << 14)
- #else
- #define MINT8_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT8PL) || (INT16PL == 0)
- #define MINT8_16PL ~(1 << 15)
- #else
- #define MINT8_16PL 0xFFFF
- #endif
- #define MINT8 (MINT8_1PL & MINT8_2PL & MINT8_3PL & MINT8_4PL &
- MINT8_5PL & MINT8_6PL & MINT8_7PL & MINT8_8PL &
- MINT8_9PL & MINT8_10PL & MINT8_11PL & MINT8_12PL &
- MINT8_13PL & MINT8_14PL & MINT8_15PL & MINT8_16PL)
- // End Of MINT8.
- // Beginning of MINT9:
- #if (INT1PL >= INT9PL) || (INT1PL == 0)
- #define MINT9_1PL ~(1 << 0)
- #else
- #define MINT9_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT9PL) || (INT2PL == 0)
- #define MINT9_2PL ~(1 << 1)
- #else
- #define MINT9_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT9PL) || (INT3PL == 0)
- #define MINT9_3PL ~(1 << 2)
- #else
- #define MINT9_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT9PL) || (INT4PL == 0)
- #define MINT9_4PL ~(1 << 3)
- #else
- #define MINT9_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT9PL) || (INT5PL == 0)
- #define MINT9_5PL ~(1 << 4)
- #else
- #define MINT9_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT9PL) || (INT6PL == 0)
- #define MINT9_6PL ~(1 << 5)
- #else
- #define MINT9_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT9PL) || (INT7PL == 0)
- #define MINT9_7PL ~(1 << 6)
- #else
- #define MINT9_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT9PL) || (INT8PL == 0)
- #define MINT9_8PL ~(1 << 7)
- #else
- #define MINT9_8PL 0xFFFF
- #endif
- #if (INT9PL == 0)
- #define MINT9_9PL ~(1 << 8)
- #else
- #define MINT9_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT9PL) || (INT10PL == 0)
- #define MINT9_10PL ~(1 << 9)
- #else
- #define MINT9_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT9PL) || (INT11PL == 0)
- #define MINT9_11PL ~(1 << 10)
- #else
- #define MINT9_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT9PL) || (INT12PL == 0)
- #define MINT9_12PL ~(1 << 11)
- #else
- #define MINT9_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT9PL) || (INT13PL == 0)
- #define MINT9_13PL ~(1 << 12)
- #else
- #define MINT9_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT9PL) || (INT14PL == 0)
- #define MINT9_14PL ~(1 << 13)
- #else
- #define MINT9_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT9PL) || (INT15PL == 0)
- #define MINT9_15PL ~(1 << 14)
- #else
- #define MINT9_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT9PL) || (INT16PL == 0)
- #define MINT9_16PL ~(1 << 15)
- #else
- #define MINT9_16PL 0xFFFF
- #endif
- #define MINT9 (MINT9_1PL & MINT9_2PL & MINT9_3PL & MINT9_4PL &
- MINT9_5PL & MINT9_6PL & MINT9_7PL & MINT9_8PL &
- MINT9_9PL & MINT9_10PL & MINT9_11PL & MINT9_12PL &
- MINT9_13PL & MINT9_14PL & MINT9_15PL & MINT9_16PL)
- // End Of MINT9.
- // Beginning of MINT10:
- #if (INT1PL >= INT10PL) || (INT1PL == 0)
- #define MINT10_1PL ~(1 << 0)
- #else
- #define MINT10_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT10PL) || (INT2PL == 0)
- #define MINT10_2PL ~(1 << 1)
- #else
- #define MINT10_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT10PL) || (INT3PL == 0)
- #define MINT10_3PL ~(1 << 2)
- #else
- #define MINT10_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT10PL) || (INT4PL == 0)
- #define MINT10_4PL ~(1 << 3)
- #else
- #define MINT10_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT10PL) || (INT5PL == 0)
- #define MINT10_5PL ~(1 << 4)
- #else
- #define MINT10_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT10PL) || (INT6PL == 0)
- #define MINT10_6PL ~(1 << 5)
- #else
- #define MINT10_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT10PL) || (INT7PL == 0)
- #define MINT10_7PL ~(1 << 6)
- #else
- #define MINT10_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT10PL) || (INT8PL == 0)
- #define MINT10_8PL ~(1 << 7)
- #else
- #define MINT10_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT10PL) || (INT9PL == 0)
- #define MINT10_9PL ~(1 << 8)
- #else
- #define MINT10_9PL 0xFFFF
- #endif
- #if (INT10PL == 0)
- #define MINT10_10PL ~(1 << 9)
- #else
- #define MINT10_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT10PL) || (INT11PL == 0)
- #define MINT10_11PL ~(1 << 10)
- #else
- #define MINT10_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT10PL) || (INT12PL == 0)
- #define MINT10_12PL ~(1 << 11)
- #else
- #define MINT10_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT10PL) || (INT13PL == 0)
- #define MINT10_13PL ~(1 << 12)
- #else
- #define MINT10_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT10PL) || (INT14PL == 0)
- #define MINT10_14PL ~(1 << 13)
- #else
- #define MINT10_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT10PL) || (INT15PL == 0)
- #define MINT10_15PL ~(1 << 14)
- #else
- #define MINT10_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT10PL) || (INT16PL == 0)
- #define MINT10_16PL ~(1 << 15)
- #else
- #define MINT10_16PL 0xFFFF
- #endif
- #define MINT10 (MINT10_1PL & MINT10_2PL & MINT10_3PL & MINT10_4PL &
- MINT10_5PL & MINT10_6PL & MINT10_7PL & MINT10_8PL &
- MINT10_9PL & MINT10_10PL & MINT10_11PL & MINT10_12PL &
- MINT10_13PL & MINT10_14PL & MINT10_15PL & MINT10_16PL)
- // End Of MINT10.
- // Beginning of MINT11:
- #if (INT1PL >= INT11PL) || (INT1PL == 0)
- #define MINT11_1PL ~(1 << 0)
- #else
- #define MINT11_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT11PL) || (INT2PL == 0)
- #define MINT11_2PL ~(1 << 1)
- #else
- #define MINT11_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT11PL) || (INT3PL == 0)
- #define MINT11_3PL ~(1 << 2)
- #else
- #define MINT11_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT11PL) || (INT4PL == 0)
- #define MINT11_4PL ~(1 << 3)
- #else
- #define MINT11_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT11PL) || (INT5PL == 0)
- #define MINT11_5PL ~(1 << 4)
- #else
- #define MINT11_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT11PL) || (INT6PL == 0)
- #define MINT11_6PL ~(1 << 5)
- #else
- #define MINT11_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT11PL) || (INT7PL == 0)
- #define MINT11_7PL ~(1 << 6)
- #else
- #define MINT11_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT11PL) || (INT8PL == 0)
- #define MINT11_8PL ~(1 << 7)
- #else
- #define MINT11_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT11PL) || (INT9PL == 0)
- #define MINT11_9PL ~(1 << 8)
- #else
- #define MINT11_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT11PL) || (INT10PL == 0)
- #define MINT11_10PL ~(1 << 9)
- #else
- #define MINT11_10PL 0xFFFF
- #endif
- #if (INT11PL == 0)
- #define MINT11_11PL ~(1 << 10)
- #else
- #define MINT11_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT11PL) || (INT12PL == 0)
- #define MINT11_12PL ~(1 << 11)
- #else
- #define MINT11_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT11PL) || (INT13PL == 0)
- #define MINT11_13PL ~(1 << 12)
- #else
- #define MINT11_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT11PL) || (INT14PL == 0)
- #define MINT11_14PL ~(1 << 13)
- #else
- #define MINT11_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT11PL) || (INT15PL == 0)
- #define MINT11_15PL ~(1 << 14)
- #else
- #define MINT11_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT11PL) || (INT16PL == 0)
- #define MINT11_16PL ~(1 << 15)
- #else
- #define MINT11_16PL 0xFFFF
- #endif
- #define MINT11 (MINT11_1PL & MINT11_2PL & MINT11_3PL & MINT11_4PL &
- MINT11_5PL & MINT11_6PL & MINT11_7PL & MINT11_8PL &
- MINT11_9PL & MINT11_10PL & MINT11_11PL & MINT11_12PL &
- MINT11_13PL & MINT11_14PL & MINT11_15PL & MINT11_16PL)
- // End Of MINT11.
- // Beginning of MINT12:
- #if (INT1PL >= INT12PL) || (INT1PL == 0)
- #define MINT12_1PL ~(1 << 0)
- #else
- #define MINT12_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT12PL) || (INT2PL == 0)
- #define MINT12_2PL ~(1 << 1)
- #else
- #define MINT12_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT12PL) || (INT3PL == 0)
- #define MINT12_3PL ~(1 << 2)
- #else
- #define MINT12_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT12PL) || (INT4PL == 0)
- #define MINT12_4PL ~(1 << 3)
- #else
- #define MINT12_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT12PL) || (INT5PL == 0)
- #define MINT12_5PL ~(1 << 4)
- #else
- #define MINT12_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT12PL) || (INT6PL == 0)
- #define MINT12_6PL ~(1 << 5)
- #else
- #define MINT12_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT12PL) || (INT7PL == 0)
- #define MINT12_7PL ~(1 << 6)
- #else
- #define MINT12_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT12PL) || (INT8PL == 0)
- #define MINT12_8PL ~(1 << 7)
- #else
- #define MINT12_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT12PL) || (INT9PL == 0)
- #define MINT12_9PL ~(1 << 8)
- #else
- #define MINT12_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT12PL) || (INT10PL == 0)
- #define MINT12_10PL ~(1 << 9)
- #else
- #define MINT12_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT12PL) || (INT11PL == 0)
- #define MINT12_11PL ~(1 << 10)
- #else
- #define MINT12_11PL 0xFFFF
- #endif
- #if (INT12PL == 0)
- #define MINT12_12PL ~(1 << 11)
- #else
- #define MINT12_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT12PL) || (INT13PL == 0)
- #define MINT12_13PL ~(1 << 12)
- #else
- #define MINT12_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT12PL) || (INT14PL == 0)
- #define MINT12_14PL ~(1 << 13)
- #else
- #define MINT12_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT12PL) || (INT15PL == 0)
- #define MINT12_15PL ~(1 << 14)
- #else
- #define MINT12_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT12PL) || (INT16PL == 0)
- #define MINT12_16PL ~(1 << 15)
- #else
- #define MINT12_16PL 0xFFFF
- #endif
- #define MINT12 (MINT12_1PL & MINT12_2PL & MINT12_3PL & MINT12_4PL &
- MINT12_5PL & MINT12_6PL & MINT12_7PL & MINT12_8PL &
- MINT12_9PL & MINT12_10PL & MINT12_11PL & MINT12_12PL &
- MINT12_13PL & MINT12_14PL & MINT12_15PL & MINT12_16PL)
- // End Of MINT12.
- // Beginning of MINT13:
- #if (INT1PL >= INT13PL) || (INT1PL == 0)
- #define MINT13_1PL ~(1 << 0)
- #else
- #define MINT13_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT13PL) || (INT2PL == 0)
- #define MINT13_2PL ~(1 << 1)
- #else
- #define MINT13_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT13PL) || (INT3PL == 0)
- #define MINT13_3PL ~(1 << 2)
- #else
- #define MINT13_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT13PL) || (INT4PL == 0)
- #define MINT13_4PL ~(1 << 3)
- #else
- #define MINT13_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT13PL) || (INT5PL == 0)
- #define MINT13_5PL ~(1 << 4)
- #else
- #define MINT13_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT13PL) || (INT6PL == 0)
- #define MINT13_6PL ~(1 << 5)
- #else
- #define MINT13_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT13PL) || (INT7PL == 0)
- #define MINT13_7PL ~(1 << 6)
- #else
- #define MINT13_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT13PL) || (INT8PL == 0)
- #define MINT13_8PL ~(1 << 7)
- #else
- #define MINT13_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT13PL) || (INT9PL == 0)
- #define MINT13_9PL ~(1 << 8)
- #else
- #define MINT13_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT13PL) || (INT10PL == 0)
- #define MINT13_10PL ~(1 << 9)
- #else
- #define MINT13_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT13PL) || (INT11PL == 0)
- #define MINT13_11PL ~(1 << 10)
- #else
- #define MINT13_11PL 0xFFFF
- #endif
- #define MINT13_12PL ~(1 << 11)
- #if (INT13PL == 0)
- #define MINT13_13PL ~(1 << 12)
- #else
- #define MINT13_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT13PL) || (INT14PL == 0)
- #define MINT13_14PL ~(1 << 13)
- #else
- #define MINT13_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT13PL) || (INT15PL == 0)
- #define MINT13_15PL ~(1 << 14)
- #else
- #define MINT13_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT13PL) || (INT16PL == 0)
- #define MINT13_16PL ~(1 << 15)
- #else
- #define MINT13_16PL 0xFFFF
- #endif
- #define MINT13 (MINT13_1PL & MINT13_2PL & MINT13_3PL & MINT13_4PL &
- MINT13_5PL & MINT13_6PL & MINT13_7PL & MINT13_8PL &
- MINT13_9PL & MINT13_10PL & MINT13_11PL & MINT13_12PL &
- MINT13_13PL & MINT13_14PL & MINT13_15PL & MINT13_16PL)
- // End Of MINT13.
- // Beginning of MINT14:
- #if (INT1PL >= INT14PL) || (INT1PL == 0)
- #define MINT14_1PL ~(1 << 0)
- #else
- #define MINT14_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT14PL) || (INT2PL == 0)
- #define MINT14_2PL ~(1 << 1)
- #else
- #define MINT14_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT14PL) || (INT3PL == 0)
- #define MINT14_3PL ~(1 << 2)
- #else
- #define MINT14_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT14PL) || (INT4PL == 0)
- #define MINT14_4PL ~(1 << 3)
- #else
- #define MINT14_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT14PL) || (INT5PL == 0)
- #define MINT14_5PL ~(1 << 4)
- #else
- #define MINT14_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT14PL) || (INT6PL == 0)
- #define MINT14_6PL ~(1 << 5)
- #else
- #define MINT14_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT14PL) || (INT7PL == 0)
- #define MINT14_7PL ~(1 << 6)
- #else
- #define MINT14_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT14PL) || (INT8PL == 0)
- #define MINT14_8PL ~(1 << 7)
- #else
- #define MINT14_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT14PL) || (INT9PL == 0)
- #define MINT14_9PL ~(1 << 8)
- #else
- #define MINT14_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT14PL) || (INT10PL == 0)
- #define MINT14_10PL ~(1 << 9)
- #else
- #define MINT14_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT14PL) || (INT11PL == 0)
- #define MINT14_11PL ~(1 << 10)
- #else
- #define MINT14_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT14PL) || (INT12PL == 0)
- #define MINT14_12PL ~(1 << 11)
- #else
- #define MINT14_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT14PL) || (INT13PL == 0)
- #define MINT14_13PL ~(1 << 12)
- #else
- #define MINT14_13PL 0xFFFF
- #endif
- #define MINT14_14PL ~(1 << 13)
- #if (INT15PL >= INT14PL) || (INT15PL == 0)
- #define MINT14_15PL ~(1 << 14)
- #else
- #define MINT14_15PL 0xFFFF
- #endif
- #if (INT16PL >= INT14PL) || (INT16PL == 0)
- #define MINT14_16PL ~(1 << 15)
- #else
- #define MINT14_16PL 0xFFFF
- #endif
- #define MINT14 (MINT14_1PL & MINT14_2PL & MINT14_3PL & MINT14_4PL &
- MINT14_5PL & MINT14_6PL & MINT14_7PL & MINT14_8PL &
- MINT14_9PL & MINT14_10PL & MINT14_11PL & MINT14_12PL &
- MINT14_13PL & MINT14_14PL & MINT14_15PL & MINT14_16PL)
- // End Of MINT14.
- // Beginning of MINT15:
- #if (INT1PL >= INT15PL) || (INT1PL == 0)
- #define MINT15_1PL ~(1 << 0)
- #else
- #define MINT15_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT15PL) || (INT2PL == 0)
- #define MINT15_2PL ~(1 << 1)
- #else
- #define MINT15_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT15PL) || (INT3PL == 0)
- #define MINT15_3PL ~(1 << 2)
- #else
- #define MINT15_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT15PL) || (INT4PL == 0)
- #define MINT15_4PL ~(1 << 3)
- #else
- #define MINT15_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT15PL) || (INT5PL == 0)
- #define MINT15_5PL ~(1 << 4)
- #else
- #define MINT15_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT15PL) || (INT6PL == 0)
- #define MINT15_6PL ~(1 << 5)
- #else
- #define MINT15_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT15PL) || (INT7PL == 0)
- #define MINT15_7PL ~(1 << 6)
- #else
- #define MINT15_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT15PL) || (INT8PL == 0)
- #define MINT15_8PL ~(1 << 7)
- #else
- #define MINT15_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT15PL) || (INT9PL == 0)
- #define MINT15_9PL ~(1 << 8)
- #else
- #define MINT15_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT15PL) || (INT10PL == 0)
- #define MINT15_10PL ~(1 << 9)
- #else
- #define MINT15_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT15PL) || (INT11PL == 0)
- #define MINT15_11PL ~(1 << 10)
- #else
- #define MINT15_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT15PL) || (INT12PL == 0)
- #define MINT15_12PL ~(1 << 11)
- #else
- #define MINT15_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT15PL) || (INT13PL == 0)
- #define MINT15_13PL ~(1 << 12)
- #else
- #define MINT15_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT15PL) || (INT14PL == 0)
- #define MINT15_14PL ~(1 << 13)
- #else
- #define MINT15_14PL 0xFFFF
- #endif
- #define MINT15_15PL ~(1 << 14)
- #if (INT16PL >= INT15PL) || (INT16PL == 0)
- #define MINT15_16PL ~(1 << 15)
- #else
- #define MINT15_16PL 0xFFFF
- #endif
- #define MINT15 (MINT15_1PL & MINT15_2PL & MINT15_3PL & MINT15_4PL &
- MINT15_5PL & MINT15_6PL & MINT15_7PL & MINT15_8PL &
- MINT15_9PL & MINT15_10PL & MINT15_11PL & MINT15_12PL &
- MINT15_13PL & MINT15_14PL & MINT15_15PL & MINT15_16PL)
- // End Of MINT15.
- // Beginning of MINT16:
- #if (INT1PL >= INT16PL) || (INT1PL == 0)
- #define MINT16_1PL ~(1 << 0)
- #else
- #define MINT16_1PL 0xFFFF
- #endif
- #if (INT2PL >= INT16PL) || (INT2PL == 0)
- #define MINT16_2PL ~(1 << 1)
- #else
- #define MINT16_2PL 0xFFFF
- #endif
- #if (INT3PL >= INT16PL) || (INT3PL == 0)
- #define MINT16_3PL ~(1 << 2)
- #else
- #define MINT16_3PL 0xFFFF
- #endif
- #if (INT4PL >= INT16PL) || (INT4PL == 0)
- #define MINT16_4PL ~(1 << 3)
- #else
- #define MINT16_4PL 0xFFFF
- #endif
- #if (INT5PL >= INT16PL) || (INT5PL == 0)
- #define MINT16_5PL ~(1 << 4)
- #else
- #define MINT16_5PL 0xFFFF
- #endif
- #if (INT6PL >= INT16PL) || (INT6PL == 0)
- #define MINT16_6PL ~(1 << 5)
- #else
- #define MINT16_6PL 0xFFFF
- #endif
- #if (INT7PL >= INT16PL) || (INT7PL == 0)
- #define MINT16_7PL ~(1 << 6)
- #else
- #define MINT16_7PL 0xFFFF
- #endif
- #if (INT8PL >= INT16PL) || (INT8PL == 0)
- #define MINT16_8PL ~(1 << 7)
- #else
- #define MINT16_8PL 0xFFFF
- #endif
- #if (INT9PL >= INT16PL) || (INT9PL == 0)
- #define MINT16_9PL ~(1 << 8)
- #else
- #define MINT16_9PL 0xFFFF
- #endif
- #if (INT10PL >= INT16PL) || (INT10PL == 0)
- #define MINT16_10PL ~(1 << 9)
- #else
- #define MINT16_10PL 0xFFFF
- #endif
- #if (INT11PL >= INT16PL) || (INT11PL == 0)
- #define MINT16_11PL ~(1 << 10)
- #else
- #define MINT16_11PL 0xFFFF
- #endif
- #if (INT12PL >= INT16PL) || (INT12PL == 0)
- #define MINT16_12PL ~(1 << 11)
- #else
- #define MINT16_12PL 0xFFFF
- #endif
- #if (INT13PL >= INT16PL) || (INT13PL == 0)
- #define MINT16_13PL ~(1 << 12)
- #else
- #define MINT16_13PL 0xFFFF
- #endif
- #if (INT14PL >= INT16PL) || (INT14PL == 0)
- #define MINT16_14PL ~(1 << 13)
- #else
- #define MINT16_14PL 0xFFFF
- #endif
- #if (INT15PL >= INT16PL) || (INT15PL == 0)
- #define MINT16_15PL ~(1 << 14)
- #else
- #define MINT16_15PL 0xFFFF
- #endif
- #define MINT16_16PL ~(1 << 15)
- #define MINT16 (MINT16_1PL & MINT16_2PL & MINT16_3PL & MINT16_4PL &
- MINT16_5PL & MINT16_6PL & MINT16_7PL & MINT16_8PL &
- MINT16_9PL & MINT16_10PL & MINT16_11PL & MINT16_12PL &
- MINT16_13PL & MINT16_14PL & MINT16_15PL & MINT16_16PL)
- // End Of MINT16.
- //-------------------------------------------------------------------------------
- // Automatically generate PIEIER1 interrupt masks MG11 to MG18:
- // Beginning of MG11:
- #if (G12PL >= G11PL) || (G12PL == 0)
- #define MG11_12PL ~(1 << 1)
- #else
- #define MG11_12PL 0xFFFF
- #endif
- #if (G13PL >= G11PL) || (G13PL == 0)
- #define MG11_13PL ~(1 << 2)
- #else
- #define MG11_13PL 0xFFFF
- #endif
- #if (G14PL >= G11PL) || (G14PL == 0)
- #define MG11_14PL ~(1 << 3)
- #else
- #define MG11_14PL 0xFFFF
- #endif
- #if (G15PL >= G11PL) || (G15PL == 0)
- #define MG11_15PL ~(1 << 4)
- #else
- #define MG11_15PL 0xFFFF
- #endif
- #if (G16PL >= G11PL) || (G16PL == 0)
- #define MG11_16PL ~(1 << 5)
- #else
- #define MG11_16PL 0xFFFF
- #endif
- #if (G17PL >= G11PL) || (G17PL == 0)
- #define MG11_17PL ~(1 << 6)
- #else
- #define MG11_17PL 0xFFFF
- #endif
- #if (G18PL >= G11PL) || (G18PL == 0)
- #define MG11_18PL ~(1 << 7)
- #else
- #define MG11_18PL 0xFFFF
- #endif
- #define MG11_11PL 0x00FE
- #define MG11 (MG11_11PL & MG11_12PL & MG11_13PL & MG11_14PL &
- MG11_15PL & MG11_16PL & MG11_17PL & MG11_18PL)
- // End of MG11:
- // Beginning of MG12:
- #if (G11PL >= G12PL) || (G11PL == 0)
- #define MG12_11PL ~(1)
- #else
- #define MG12_11PL 0xFFFF
- #endif
- #if (G13PL >= G12PL) || (G13PL == 0)
- #define MG12_13PL ~(1 << 2)
- #else
- #define MG12_13PL 0xFFFF
- #endif
- #if (G14PL >= G12PL) || (G14PL == 0)
- #define MG12_14PL ~(1 << 3)
- #else
- #define MG12_14PL 0xFFFF
- #endif
- #if (G15PL >= G12PL) || (G15PL == 0)
- #define MG12_15PL ~(1 << 4)
- #else
- #define MG12_15PL 0xFFFF
- #endif
- #if (G16PL >= G12PL) || (G16PL == 0)
- #define MG12_16PL ~(1 << 5)
- #else
- #define MG12_16PL 0xFFFF
- #endif
- #if (G17PL >= G12PL) || (G17PL == 0)
- #define MG12_17PL ~(1 << 6)
- #else
- #define MG12_17PL 0xFFFF
- #endif
- #if (G18PL >= G12PL) || (G18PL == 0)
- #define MG12_18PL ~(1 << 7)
- #else
- #define MG12_18PL 0xFFFF
- #endif
- #define MG12_12PL 0x00FD
- #define MG12 (MG12_11PL & MG12_12PL & MG12_13PL & MG12_14PL &
- MG12_15PL & MG12_16PL & MG12_17PL & MG12_18PL)
- // End of MG12:
- // Beginning of MG13:
- #if (G11PL >= G13PL) || (G11PL == 0)
- #define MG13_11PL ~(1)
- #else
- #define MG13_11PL 0xFFFF
- #endif
- #if (G12PL >= G13PL) || (G12PL == 0)
- #define MG13_12PL ~(1 << 1)
- #else
- #define MG13_12PL 0xFFFF
- #endif
- #if (G14PL >= G13PL) || (G14PL == 0)
- #define MG13_14PL ~(1 << 3)
- #else
- #define MG13_14PL 0xFFFF
- #endif
- #if (G15PL >= G13PL) || (G15PL == 0)
- #define MG13_15PL ~(1 << 4)
- #else
- #define MG13_15PL 0xFFFF
- #endif
- #if (G16PL >= G13PL) || (G16PL == 0)
- #define MG13_16PL ~(1 << 5)
- #else
- #define MG13_16PL 0xFFFF
- #endif
- #if (G17PL >= G13PL) || (G17PL == 0)
- #define MG13_17PL ~(1 << 6)
- #else
- #define MG13_17PL 0xFFFF
- #endif
- #if (G18PL >= G13PL) || (G18PL == 0)
- #define MG13_18PL ~(1 << 7)
- #else
- #define MG13_18PL 0xFFFF
- #endif
- #define MG13_13PL 0x00FB
- #define MG13 (MG13_11PL & MG13_12PL & MG13_13PL & MG13_14PL &
- MG13_15PL & MG13_16PL & MG13_17PL & MG13_18PL)
- // End of MG13:
- // Beginning of MG14:
- #if (G11PL >= G14PL) || (G11PL == 0)
- #define MG14_11PL ~(1)
- #else
- #define MG14_11PL 0xFFFF
- #endif
- #if (G12PL >= G14PL) || (G12PL == 0)
- #define MG14_12PL ~(1 << 1)
- #else
- #define MG14_12PL 0xFFFF
- #endif
- #if (G13PL >= G14PL) || (G13PL == 0)
- #define MG14_13PL ~(1 << 2)
- #else
- #define MG14_13PL 0xFFFF
- #endif
- #if (G15PL >= G14PL) || (G15PL == 0)
- #define MG14_15PL ~(1 << 4)
- #else
- #define MG14_15PL 0xFFFF
- #endif
- #if (G16PL >= G14PL) || (G16PL == 0)
- #define MG14_16PL ~(1 << 5)
- #else
- #define MG14_16PL 0xFFFF
- #endif
- #if (G17PL >= G14PL) || (G17PL == 0)
- #define MG14_17PL ~(1 << 6)
- #else
- #define MG14_17PL 0xFFFF
- #endif
- #if (G18PL >= G14PL) || (G18PL == 0)
- #define MG14_18PL ~(1 << 7)
- #else
- #define MG14_18PL 0xFFFF
- #endif
- #define MG14_14PL 0x00F7
- #define MG14 (MG14_11PL & MG14_12PL & MG14_13PL & MG14_14PL &
- MG14_15PL & MG14_16PL & MG14_17PL & MG14_18PL)
- // End of MG14:
- // Beginning of MG15:
- #if (G11PL >= G15PL) || (G11PL == 0)
- #define MG15_11PL ~(1)
- #else
- #define MG15_11PL 0xFFFF
- #endif
- #if (G12PL >= G15PL) || (G12PL == 0)
- #define MG15_12PL ~(1 << 1)
- #else
- #define MG15_12PL 0xFFFF
- #endif
- #if (G13PL >= G15PL) || (G13PL == 0)
- #define MG15_13PL ~(1 << 2)
- #else
- #define MG15_13PL 0xFFFF
- #endif
- #if (G14PL >= G15PL) || (G14PL == 0)
- #define MG15_14PL ~(1 << 3)
- #else
- #define MG15_14PL 0xFFFF
- #endif
- #if (G16PL >= G15PL) || (G16PL == 0)
- #define MG15_16PL ~(1 << 5)
- #else
- #define MG15_16PL 0xFFFF
- #endif
- #if (G17PL >= G15PL) || (G17PL == 0)
- #define MG15_17PL ~(1 << 6)
- #else
- #define MG15_17PL 0xFFFF
- #endif
- #if (G18PL >= G15PL) || (G18PL == 0)
- #define MG15_18PL ~(1 << 7)
- #else
- #define MG15_18PL 0xFFFF
- #endif
- #define MG15_15PL 0x00EF
- #define MG15 (MG15_11PL & MG15_12PL & MG15_13PL & MG15_14PL &
- MG15_15PL & MG15_16PL & MG15_17PL & MG15_18PL)
- // End of MG15:
- // Beginning of MG16:
- #if (G11PL >= G16PL) || (G11PL == 0)
- #define MG16_11PL ~(1)
- #else
- #define MG16_11PL 0xFFFF
- #endif
- #if (G12PL >= G16PL) || (G12PL == 0)
- #define MG16_12PL ~(1 << 1)
- #else
- #define MG16_12PL 0xFFFF
- #endif
- #if (G13PL >= G16PL) || (G13PL == 0)
- #define MG16_13PL ~(1 << 2)
- #else
- #define MG16_13PL 0xFFFF
- #endif
- #if (G14PL >= G16PL) || (G14PL == 0)
- #define MG16_14PL ~(1 << 3)
- #else
- #define MG16_14PL 0xFFFF
- #endif
- #if (G15PL >= G16PL) || (G15PL == 0)
- #define MG16_15PL ~(1 << 4)
- #else
- #define MG16_15PL 0xFFFF
- #endif
- #if (G17PL >= G16PL) || (G17PL == 0)
- #define MG16_17PL ~(1 << 6)
- #else
- #define MG16_17PL 0xFFFF
- #endif
- #if (G18PL >= G16PL) || (G18PL == 0)
- #define MG16_18PL ~(1 << 7)
- #else
- #define MG16_18PL 0xFFFF
- #endif
- #define MG16_16PL 0x00DF
- #define MG16 (MG16_11PL & MG16_12PL & MG16_13PL & MG16_14PL &
- MG16_15PL & MG16_16PL & MG16_17PL & MG16_18PL)
- // End of MG16:
- // Beginning of MG17:
- #if (G11PL >= G17PL) || (G11PL == 0)
- #define MG17_11PL ~(1)
- #else
- #define MG17_11PL 0xFFFF
- #endif
- #if (G12PL >= G17PL) || (G12PL == 0)
- #define MG17_12PL ~(1 << 1)
- #else
- #define MG17_12PL 0xFFFF
- #endif
- #if (G13PL >= G17PL) || (G13PL == 0)
- #define MG17_13PL ~(1 << 2)
- #else
- #define MG17_13PL 0xFFFF
- #endif
- #if (G14PL >= G17PL) || (G14PL == 0)
- #define MG17_14PL ~(1 << 3)
- #else
- #define MG17_14PL 0xFFFF
- #endif
- #if (G15PL >= G17PL) || (G15PL == 0)
- #define MG17_15PL ~(1 << 4)
- #else
- #define MG17_15PL 0xFFFF
- #endif
- #if (G16PL >= G17PL) || (G16PL == 0)
- #define MG17_16PL ~(1 << 5)
- #else
- #define MG17_16PL 0xFFFF
- #endif
- #if (G18PL >= G17PL) || (G18PL == 0)
- #define MG17_18PL ~(1 << 7)
- #else
- #define MG17_18PL 0xFFFF
- #endif
- #define MG17_17PL 0x00BF
- #define MG17 (MG17_11PL & MG17_12PL & MG17_13PL & MG17_14PL &
- MG17_15PL & MG17_16PL & MG17_17PL & MG17_18PL)
- // End of MG17:
- // Beginning of MG18:
- #if (G11PL >= G18PL) || (G11PL == 0)
- #define MG18_11PL ~(1)
- #else
- #define MG18_11PL 0xFFFF
- #endif
- #if (G12PL >= G18PL) || (G12PL == 0)
- #define MG18_12PL ~(1 << 1)
- #else
- #define MG18_12PL 0xFFFF
- #endif
- #if (G13PL >= G18PL) || (G13PL == 0)
- #define MG18_13PL ~(1 << 2)
- #else
- #define MG18_13PL 0xFFFF
- #endif
- #if (G14PL >= G18PL) || (G14PL == 0)
- #define MG18_14PL ~(1 << 3)
- #else
- #define MG18_14PL 0xFFFF
- #endif
- #if (G15PL >= G18PL) || (G15PL == 0)
- #define MG18_15PL ~(1 << 4)
- #else
- #define MG18_15PL 0xFFFF
- #endif
- #if (G16PL >= G18PL) || (G16PL == 0)
- #define MG18_16PL ~(1 << 5)
- #else
- #define MG18_16PL 0xFFFF
- #endif
- #if (G17PL >= G18PL) || (G17PL == 0)
- #define MG18_17PL ~(1 << 6)
- #else
- #define MG18_17PL 0xFFFF
- #endif
- #define MG18_18PL 0x007F
- #define MG18 (MG18_11PL & MG18_12PL & MG18_13PL & MG18_14PL &
- MG18_15PL & MG18_16PL & MG18_17PL & MG18_18PL)
- // End of MG18:
- //-------------------------------------------------------------------------------
- // Automatically generate PIEIER1 interrupt masks MG21 to MG28:
- //
- // Beginning of MG21:
- #if (G22PL >= G21PL) || (G22PL == 0)
- #define MG21_12PL ~(1 << 1)
- #else
- #define MG21_12PL 0xFFFF
- #endif
- #if (G23PL >= G21PL) || (G23PL == 0)
- #define MG21_13PL ~(1 << 2)
- #else
- #define MG21_13PL 0xFFFF
- #endif
- #if (G24PL >= G21PL) || (G24PL == 0)
- #define MG21_14PL ~(1 << 3)
- #else
- #define MG21_14PL 0xFFFF
- #endif
- #if (G25PL >= G21PL) || (G25PL == 0)
- #define MG21_15PL ~(1 << 4)
- #else
- #define MG21_15PL 0xFFFF
- #endif
- #if (G26PL >= G21PL) || (G26PL == 0)
- #define MG21_16PL ~(1 << 5)
- #else
- #define MG21_16PL 0xFFFF
- #endif
- #if (G27PL >= G21PL) || (G27PL == 0)
- #define MG21_17PL ~(1 << 6)
- #else
- #define MG21_17PL 0xFFFF
- #endif
- #if (G28PL >= G21PL) || (G28PL == 0)
- #define MG21_18PL ~(1 << 7)
- #else
- #define MG21_18PL 0xFFFF
- #endif
- #define MG21_11PL 0x00FE
- #define MG21 (MG21_11PL & MG21_12PL & MG21_13PL & MG21_14PL &
- MG21_15PL & MG21_16PL & MG21_17PL & MG21_18PL)
- // End of MG21:
- // Beginning of MG22:
- #if (G21PL >= G22PL) || (G21PL == 0)
- #define MG22_11PL ~(1)
- #else
- #define MG22_11PL 0xFFFF
- #endif
- #if (G23PL >= G22PL) || (G23PL == 0)
- #define MG22_13PL ~(1 << 2)
- #else
- #define MG22_13PL 0xFFFF
- #endif
- #if (G24PL >= G22PL) || (G24PL == 0)
- #define MG22_14PL ~(1 << 3)
- #else
- #define MG22_14PL 0xFFFF
- #endif
- #if (G25PL >= G22PL) || (G25PL == 0)
- #define MG22_15PL ~(1 << 4)
- #else
- #define MG22_15PL 0xFFFF
- #endif
- #if (G26PL >= G22PL) || (G26PL == 0)
- #define MG22_16PL ~(1 << 5)
- #else
- #define MG22_16PL 0xFFFF
- #endif
- #if (G27PL >= G22PL) || (G27PL == 0)
- #define MG22_17PL ~(1 << 6)
- #else
- #define MG22_17PL 0xFFFF
- #endif
- #if (G28PL >= G22PL) || (G28PL == 0)
- #define MG22_18PL ~(1 << 7)
- #else
- #define MG22_18PL 0xFFFF
- #endif
- #define MG22_12PL 0x00FD
- #define MG22 (MG22_11PL & MG22_12PL & MG22_13PL & MG22_14PL &
- MG22_15PL & MG22_16PL & MG22_17PL & MG22_18PL)
- // End of MG22:
- // Beginning of MG23:
- #if (G21PL >= G23PL) || (G21PL == 0)
- #define MG23_11PL ~(1)
- #else
- #define MG23_11PL 0xFFFF
- #endif
- #if (G22PL >= G23PL) || (G22PL == 0)
- #define MG23_12PL ~(1 << 1)
- #else
- #define MG23_12PL 0xFFFF
- #endif
- #if (G24PL >= G23PL) || (G24PL == 0)
- #define MG23_14PL ~(1 << 3)
- #else
- #define MG23_14PL 0xFFFF
- #endif
- #if (G25PL >= G23PL) || (G25PL == 0)
- #define MG23_15PL ~(1 << 4)
- #else
- #define MG23_15PL 0xFFFF
- #endif
- #if (G26PL >= G23PL) || (G26PL == 0)
- #define MG23_16PL ~(1 << 5)
- #else
- #define MG23_16PL 0xFFFF
- #endif
- #if (G27PL >= G23PL) || (G27PL == 0)
- #define MG23_17PL ~(1 << 6)
- #else
- #define MG23_17PL 0xFFFF
- #endif
- #if (G28PL >= G23PL) || (G28PL == 0)
- #define MG23_18PL ~(1 << 7)
- #else
- #define MG23_18PL 0xFFFF
- #endif
- #define MG23_13PL 0x00FB
- #define MG23 (MG23_11PL & MG23_12PL & MG23_13PL & MG23_14PL &
- MG23_15PL & MG23_16PL & MG23_17PL & MG23_18PL)
- // End of MG23:
- // Beginning of MG24:
- #if (G21PL >= G24PL) || (G21PL == 0)
- #define MG24_11PL ~(1)
- #else
- #define MG24_11PL 0xFFFF
- #endif
- #if (G22PL >= G24PL) || (G22PL == 0)
- #define MG24_12PL ~(1 << 1)
- #else
- #define MG24_12PL 0xFFFF
- #endif
- #if (G23PL >= G24PL) || (G23PL == 0)
- #define MG24_13PL ~(1 << 2)
- #else
- #define MG24_13PL 0xFFFF
- #endif
- #if (G25PL >= G24PL) || (G25PL == 0)
- #define MG24_15PL ~(1 << 4)
- #else
- #define MG24_15PL 0xFFFF
- #endif
- #if (G26PL >= G24PL) || (G26PL == 0)
- #define MG24_16PL ~(1 << 5)
- #else
- #define MG24_16PL 0xFFFF
- #endif
- #if (G27PL >= G24PL) || (G27PL == 0)
- #define MG24_17PL ~(1 << 6)
- #else
- #define MG24_17PL 0xFFFF
- #endif
- #if (G28PL >= G24PL) || (G28PL == 0)
- #define MG24_18PL ~(1 << 7)
- #else
- #define MG24_18PL 0xFFFF
- #endif
- #define MG24_14PL 0x00F7
- #define MG24 (MG24_11PL & MG24_12PL & MG24_13PL & MG24_14PL &
- MG24_15PL & MG24_16PL & MG24_17PL & MG24_18PL)
- // End of MG24:
- // Beginning of MG25:
- #if (G21PL >= G25PL) || (G21PL == 0)
- #define MG25_11PL ~(1)
- #else
- #define MG25_11PL 0xFFFF
- #endif
- #if (G22PL >= G25PL) || (G22PL == 0)
- #define MG25_12PL ~(1 << 1)
- #else
- #define MG25_12PL 0xFFFF
- #endif
- #if (G23PL >= G25PL) || (G23PL == 0)
- #define MG25_13PL ~(1 << 2)
- #else
- #define MG25_13PL 0xFFFF
- #endif
- #if (G24PL >= G25PL) || (G24PL == 0)
- #define MG25_14PL ~(1 << 3)
- #else
- #define MG25_14PL 0xFFFF
- #endif
- #if (G26PL >= G25PL) || (G26PL == 0)
- #define MG25_16PL ~(1 << 5)
- #else
- #define MG25_16PL 0xFFFF
- #endif
- #if (G27PL >= G25PL) || (G27PL == 0)
- #define MG25_17PL ~(1 << 6)
- #else
- #define MG25_17PL 0xFFFF
- #endif
- #if (G28PL >= G25PL) || (G28PL == 0)
- #define MG25_18PL ~(1 << 7)
- #else
- #define MG25_18PL 0xFFFF
- #endif
- #define MG25_15PL 0x00EF
- #define MG25 (MG25_11PL & MG25_12PL & MG25_13PL & MG25_14PL &
- MG25_15PL & MG25_16PL & MG25_17PL & MG25_18PL)
- // End of MG25:
- // Beginning of MG26:
- #if (G21PL >= G26PL) || (G21PL == 0)
- #define MG26_11PL ~(1)
- #else
- #define MG26_11PL 0xFFFF
- #endif
- #if (G22PL >= G26PL) || (G22PL == 0)
- #define MG26_12PL ~(1 << 1)
- #else
- #define MG26_12PL 0xFFFF
- #endif
- #if (G23PL >= G26PL) || (G23PL == 0)
- #define MG26_13PL ~(1 << 2)
- #else
- #define MG26_13PL 0xFFFF
- #endif
- #if (G24PL >= G26PL) || (G24PL == 0)
- #define MG26_14PL ~(1 << 3)
- #else
- #define MG26_14PL 0xFFFF
- #endif
- #if (G25PL >= G26PL) || (G25PL == 0)
- #define MG26_15PL ~(1 << 4)
- #else
- #define MG26_15PL 0xFFFF
- #endif
- #if (G27PL >= G26PL) || (G27PL == 0)
- #define MG26_17PL ~(1 << 6)
- #else
- #define MG26_17PL 0xFFFF
- #endif
- #if (G28PL >= G26PL) || (G28PL == 0)
- #define MG26_18PL ~(1 << 7)
- #else
- #define MG26_18PL 0xFFFF
- #endif
- #define MG26_16PL 0x00DF
- #define MG26 (MG26_11PL & MG26_12PL & MG26_13PL & MG26_14PL &
- MG26_15PL & MG26_16PL & MG26_17PL & MG26_18PL)
- // End of MG26:
- // Beginning of MG27:
- #if (G21PL >= G27PL) || (G21PL == 0)
- #define MG27_11PL ~(1)
- #else
- #define MG27_11PL 0xFFFF
- #endif
- #if (G22PL >= G27PL) || (G22PL == 0)
- #define MG27_12PL ~(1 << 1)
- #else
- #define MG27_12PL 0xFFFF
- #endif
- #if (G23PL >= G27PL) || (G23PL == 0)
- #define MG27_13PL ~(1 << 2)
- #else
- #define MG27_13PL 0xFFFF
- #endif
- #if (G24PL >= G27PL) || (G24PL == 0)
- #define MG27_14PL ~(1 << 3)
- #else
- #define MG27_14PL 0xFFFF
- #endif
- #if (G25PL >= G27PL) || (G25PL == 0)
- #define MG27_15PL ~(1 << 4)
- #else
- #define MG27_15PL 0xFFFF
- #endif
- #if (G26PL >= G27PL) || (G26PL == 0)
- #define MG27_16PL ~(1 << 5)
- #else
- #define MG27_16PL 0xFFFF
- #endif
- #if (G28PL >= G27PL) || (G28PL == 0)
- #define MG27_18PL ~(1 << 7)
- #else
- #define MG27_18PL 0xFFFF
- #endif
- #define MG27_17PL 0x00BF
- #define MG27 (MG27_11PL & MG27_12PL & MG27_13PL & MG27_14PL &
- MG27_15PL & MG27_16PL & MG27_17PL & MG27_18PL)
- // End of MG27:
- // Beginning of MG28:
- #if (G21PL >= G28PL) || (G21PL == 0)
- #define MG28_11PL ~(1)
- #else
- #define MG28_11PL 0xFFFF
- #endif
- #if (G22PL >= G28PL) || (G22PL == 0)
- #define MG28_12PL ~(1 << 1)
- #else
- #define MG28_12PL 0xFFFF
- #endif
- #if (G23PL >= G28PL) || (G23PL == 0)
- #define MG28_13PL ~(1 << 2)
- #else
- #define MG28_13PL 0xFFFF
- #endif
- #if (G24PL >= G28PL) || (G24PL == 0)
- #define MG28_14PL ~(1 << 3)
- #else
- #define MG28_14PL 0xFFFF
- #endif
- #if (G25PL >= G28PL) || (G25PL == 0)
- #define MG28_15PL ~(1 << 4)
- #else
- #define MG28_15PL 0xFFFF
- #endif
- #if (G26PL >= G28PL) || (G26PL == 0)
- #define MG28_16PL ~(1 << 5)
- #else
- #define MG28_16PL 0xFFFF
- #endif
- #if (G27PL >= G28PL) || (G27PL == 0)
- #define MG28_17PL ~(1 << 6)
- #else
- #define MG28_17PL 0xFFFF
- #endif
- #define MG28_18PL 0x007F
- #define MG28 (MG28_11PL & MG28_12PL & MG28_13PL & MG28_14PL &
- MG28_15PL & MG28_16PL & MG28_17PL & MG28_18PL)
- // End of MG28:
- //-------------------------------------------------------------------------------
- // Automatically generate PIEIER1 interrupt masks MG31 to MG38:
- //
- // Beginning of MG31:
- #if (G32PL >= G31PL) || (G32PL == 0)
- #define MG31_12PL ~(1 << 1)
- #else
- #define MG31_12PL 0xFFFF
- #endif
- #if (G33PL >= G31PL) || (G33PL == 0)
- #define MG31_13PL ~(1 << 2)
- #else
- #define MG31_13PL 0xFFFF
- #endif
- #if (G34PL >= G31PL) || (G34PL == 0)
- #define MG31_14PL ~(1 << 3)
- #else
- #define MG31_14PL 0xFFFF
- #endif
- #if (G35PL >= G31PL) || (G35PL == 0)
- #define MG31_15PL ~(1 << 4)
- #else
- #define MG31_15PL 0xFFFF
- #endif
- #if (G36PL >= G31PL) || (G36PL == 0)
- #define MG31_16PL ~(1 << 5)
- #else
- #define MG31_16PL 0xFFFF
- #endif
- #if (G37PL >= G31PL) || (G37PL == 0)
- #define MG31_17PL ~(1 << 6)
- #else
- #define MG31_17PL 0xFFFF
- #endif
- #if (G38PL >= G31PL) || (G38PL == 0)
- #define MG31_18PL ~(1 << 7)
- #else
- #define MG31_18PL 0xFFFF
- #endif
- #define MG31_11PL 0x00FE
- #define MG31 (MG31_11PL & MG31_12PL & MG31_13PL & MG31_14PL &
- MG31_15PL & MG31_16PL & MG31_17PL & MG31_18PL)
- // End of MG31:
- // Beginning of MG32:
- #if (G31PL >= G32PL) || (G31PL == 0)
- #define MG32_11PL ~(1)
- #else
- #define MG32_11PL 0xFFFF
- #endif
- #if (G33PL >= G32PL) || (G33PL == 0)
- #define MG32_13PL ~(1 << 2)
- #else
- #define MG32_13PL 0xFFFF
- #endif
- #if (G34PL >= G32PL) || (G34PL == 0)
- #define MG32_14PL ~(1 << 3)
- #else
- #define MG32_14PL 0xFFFF
- #endif
- #if (G35PL >= G32PL) || (G35PL == 0)
- #define MG32_15PL ~(1 << 4)
- #else
- #define MG32_15PL 0xFFFF
- #endif
- #if (G36PL >= G32PL) || (G36PL == 0)
- #define MG32_16PL ~(1 << 5)
- #else
- #define MG32_16PL 0xFFFF
- #endif
- #if (G37PL >= G32PL) || (G37PL == 0)
- #define MG32_17PL ~(1 << 6)
- #else
- #define MG32_17PL 0xFFFF
- #endif
- #if (G38PL >= G32PL) || (G38PL == 0)
- #define MG32_18PL ~(1 << 7)
- #else
- #define MG32_18PL 0xFFFF
- #endif
- #define MG32_12PL 0x00FD
- #define MG32 (MG32_11PL & MG32_12PL & MG32_13PL & MG32_14PL &
- MG32_15PL & MG32_16PL & MG32_17PL & MG32_18PL)
- // End of MG32:
- // Beginning of MG33:
- #if (G31PL >= G33PL) || (G31PL == 0)
- #define MG33_11PL ~(1)
- #else
- #define MG33_11PL 0xFFFF
- #endif
- #if (G32PL >= G33PL) || (G32PL == 0)
- #define MG33_12PL ~(1 << 1)
- #else
- #define MG33_12PL 0xFFFF
- #endif
- #if (G34PL >= G33PL) || (G34PL == 0)
- #define MG33_14PL ~(1 << 3)
- #else
- #define MG33_14PL 0xFFFF
- #endif
- #if (G35PL >= G33PL) || (G35PL == 0)
- #define MG33_15PL ~(1 << 4)
- #else
- #define MG33_15PL 0xFFFF
- #endif
- #if (G36PL >= G33PL) || (G36PL == 0)
- #define MG33_16PL ~(1 << 5)
- #else
- #define MG33_16PL 0xFFFF
- #endif
- #if (G37PL >= G33PL) || (G37PL == 0)
- #define MG33_17PL ~(1 << 6)
- #else
- #define MG33_17PL 0xFFFF
- #endif
- #if (G38PL >= G33PL) || (G38PL == 0)
- #define MG33_18PL ~(1 << 7)
- #else
- #define MG33_18PL 0xFFFF
- #endif
- #define MG33_13PL 0x00FB
- #define MG33 (MG33_11PL & MG33_12PL & MG33_13PL & MG33_14PL &
- MG33_15PL & MG33_16PL & MG33_17PL & MG33_18PL)
- // End of MG33:
- // Beginning of MG34:
- #if (G31PL >= G34PL) || (G31PL == 0)
- #define MG34_11PL ~(1)
- #else
- #define MG34_11PL 0xFFFF
- #endif
- #if (G32PL >= G34PL) || (G32PL == 0)
- #define MG34_12PL ~(1 << 1)
- #else
- #define MG34_12PL 0xFFFF
- #endif
- #if (G33PL >= G34PL) || (G33PL == 0)
- #define MG34_13PL ~(1 << 2)
- #else
- #define MG34_13PL 0xFFFF
- #endif
- #if (G35PL >= G34PL) || (G35PL == 0)
- #define MG34_15PL ~(1 << 4)
- #else
- #define MG34_15PL 0xFFFF
- #endif
- #if (G36PL >= G34PL) || (G36PL == 0)
- #define MG34_16PL ~(1 << 5)
- #else
- #define MG34_16PL 0xFFFF
- #endif
- #if (G37PL >= G34PL) || (G37PL == 0)
- #define MG34_17PL ~(1 << 6)
- #else
- #define MG34_17PL 0xFFFF
- #endif
- #if (G38PL >= G34PL) || (G38PL == 0)
- #define MG34_18PL ~(1 << 7)
- #else
- #define MG34_18PL 0xFFFF
- #endif
- #define MG34_14PL 0x00F7
- #define MG34 (MG34_11PL & MG34_12PL & MG34_13PL & MG34_14PL &
- MG34_15PL & MG34_16PL & MG34_17PL & MG34_18PL)
- // End of MG34:
- // Beginning of MG35:
- #if (G31PL >= G35PL) || (G31PL == 0)
- #define MG35_11PL ~(1)
- #else
- #define MG35_11PL 0xFFFF
- #endif
- #if (G32PL >= G35PL) || (G32PL == 0)
- #define MG35_12PL ~(1 << 1)
- #else
- #define MG35_12PL 0xFFFF
- #endif
- #if (G33PL >= G35PL) || (G33PL == 0)
- #define MG35_13PL ~(1 << 2)
- #else
- #define MG35_13PL 0xFFFF
- #endif
- #if (G34PL >= G35PL) || (G34PL == 0)
- #define MG35_14PL ~(1 << 3)
- #else
- #define MG35_14PL 0xFFFF
- #endif
- #if (G36PL >= G35PL) || (G36PL == 0)
- #define MG35_16PL ~(1 << 5)
- #else
- #define MG35_16PL 0xFFFF
- #endif
- #if (G37PL >= G35PL) || (G37PL == 0)
- #define MG35_17PL ~(1 << 6)
- #else
- #define MG35_17PL 0xFFFF
- #endif
- #if (G38PL >= G35PL) || (G38PL == 0)
- #define MG35_18PL ~(1 << 7)
- #else
- #define MG35_18PL 0xFFFF
- #endif
- #define MG35_15PL 0x00EF
- #define MG35 (MG35_11PL & MG35_12PL & MG35_13PL & MG35_14PL &
- MG35_15PL & MG35_16PL & MG35_17PL & MG35_18PL)
- // End of MG35:
- // Beginning of MG36:
- #if (G31PL >= G36PL) || (G31PL == 0)
- #define MG36_11PL ~(1)
- #else
- #define MG36_11PL 0xFFFF
- #endif
- #if (G32PL >= G36PL) || (G32PL == 0)
- #define MG36_12PL ~(1 << 1)
- #else
- #define MG36_12PL 0xFFFF
- #endif
- #if (G33PL >= G36PL) || (G33PL == 0)
- #define MG36_13PL ~(1 << 2)
- #else
- #define MG36_13PL 0xFFFF
- #endif
- #if (G34PL >= G36PL) || (G34PL == 0)
- #define MG36_14PL ~(1 << 3)
- #else
- #define MG36_14PL 0xFFFF
- #endif
- #if (G35PL >= G36PL) || (G35PL == 0)
- #define MG36_15PL ~(1 << 4)
- #else
- #define MG36_15PL 0xFFFF
- #endif
- #if (G37PL >= G36PL) || (G37PL == 0)
- #define MG36_17PL ~(1 << 6)
- #else
- #define MG36_17PL 0xFFFF
- #endif
- #if (G38PL >= G36PL) || (G38PL == 0)
- #define MG36_18PL ~(1 << 7)
- #else
- #define MG36_18PL 0xFFFF
- #endif
- #define MG36_16PL 0x00DF
- #define MG36 (MG36_11PL & MG36_12PL & MG36_13PL & MG36_14PL &
- MG36_15PL & MG36_16PL & MG36_17PL & MG36_18PL)
- // End of MG36:
- // Beginning of MG37:
- #if (G31PL >= G37PL) || (G31PL == 0)
- #define MG37_11PL ~(1)
- #else
- #define MG37_11PL 0xFFFF
- #endif
- #if (G32PL >= G37PL) || (G32PL == 0)
- #define MG37_12PL ~(1 << 1)
- #else
- #define MG37_12PL 0xFFFF
- #endif
- #if (G33PL >= G37PL) || (G33PL == 0)
- #define MG37_13PL ~(1 << 2)
- #else
- #define MG37_13PL 0xFFFF
- #endif
- #if (G34PL >= G37PL) || (G34PL == 0)
- #define MG37_14PL ~(1 << 3)
- #else
- #define MG37_14PL 0xFFFF
- #endif
- #if (G35PL >= G37PL) || (G35PL == 0)
- #define MG37_15PL ~(1 << 4)
- #else
- #define MG37_15PL 0xFFFF
- #endif
- #if (G36PL >= G37PL) || (G36PL == 0)
- #define MG37_16PL ~(1 << 5)
- #else
- #define MG37_16PL 0xFFFF
- #endif
- #if (G38PL >= G37PL) || (G38PL == 0)
- #define MG37_18PL ~(1 << 7)
- #else
- #define MG37_18PL 0xFFFF
- #endif
- #define MG37_17PL 0x00BF
- #define MG37 (MG37_11PL & MG37_12PL & MG37_13PL & MG37_14PL &
- MG37_15PL & MG37_16PL & MG37_17PL & MG37_18PL)
- // End of MG37:
- // Beginning of MG38:
- #if (G31PL >= G38PL) || (G31PL == 0)
- #define MG38_11PL ~(1)
- #else
- #define MG38_11PL 0xFFFF
- #endif
- #if (G32PL >= G38PL) || (G32PL == 0)
- #define MG38_12PL ~(1 << 1)
- #else
- #define MG38_12PL 0xFFFF
- #endif
- #if (G33PL >= G38PL) || (G33PL == 0)
- #define MG38_13PL ~(1 << 2)
- #else
- #define MG38_13PL 0xFFFF
- #endif
- #if (G34PL >= G38PL) || (G34PL == 0)
- #define MG38_14PL ~(1 << 3)
- #else
- #define MG38_14PL 0xFFFF
- #endif
- #if (G35PL >= G38PL) || (G35PL == 0)
- #define MG38_15PL ~(1 << 4)
- #else
- #define MG38_15PL 0xFFFF
- #endif
- #if (G36PL >= G38PL) || (G36PL == 0)
- #define MG38_16PL ~(1 << 5)
- #else
- #define MG38_16PL 0xFFFF
- #endif
- #if (G37PL >= G38PL) || (G37PL == 0)
- #define MG38_17PL ~(1 << 6)
- #else
- #define MG38_17PL 0xFFFF
- #endif
- #define MG38_18PL 0x007F
- #define MG38 (MG38_11PL & MG38_12PL & MG38_13PL & MG38_14PL &
- MG38_15PL & MG38_16PL & MG38_17PL & MG38_18PL)
- // End of MG38:
- //-------------------------------------------------------------------------------
- // Automatically generate PIEIER1 interrupt masks MG41 to MG48:
- //
- // Beginning of MG41:
- #if (G42PL >= G41PL) || (G42PL == 0)
- #define MG41_12PL ~(1 << 1)
- #else
- #define MG41_12PL 0xFFFF
- #endif
- #if (G43PL >= G41PL) || (G43PL == 0)
- #define MG41_13PL ~(1 << 2)
- #else
- #define MG41_13PL 0xFFFF
- #endif
- #if (G44PL >= G41PL) || (G44PL == 0)
- #define MG41_14PL ~(1 << 3)
- #else
- #define MG41_14PL 0xFFFF
- #endif
- #if (G45PL >= G41PL) || (G45PL == 0)
- #define MG41_15PL ~(1 << 4)
- #else
- #define MG41_15PL 0xFFFF
- #endif
- #if (G46PL >= G41PL) || (G46PL == 0)
- #define MG41_16PL ~(1 << 5)
- #else
- #define MG41_16PL 0xFFFF
- #endif
- #if (G47PL >= G41PL) || (G47PL == 0)
- #define MG41_17PL ~(1 << 6)
- #else
- #define MG41_17PL 0xFFFF
- #endif
- #if (G48PL >= G41PL) || (G48PL == 0)
- #define MG41_18PL ~(1 << 7)
- #else
- #define MG41_18PL 0xFFFF
- #endif
- #define MG41_11PL 0x00FE
- #define MG41 (MG41_11PL & MG41_12PL & MG41_13PL & MG41_14PL &
- MG41_15PL & MG41_16PL & MG41_17PL & MG41_18PL)
- // End of MG41:
- // Beginning of MG42:
- #if (G41PL >= G42PL) || (G41PL == 0)
- #define MG42_11PL ~(1)
- #else
- #define MG42_11PL 0xFFFF
- #endif
- #if (G43PL >= G42PL) || (G43PL == 0)
- #define MG42_13PL ~(1 << 2)
- #else
- #define MG42_13PL 0xFFFF
- #endif