|
MotorWare f2806x Driver API Documentation
|
Data Structures | |
| struct | _PIE_IERIFR_t |
| Defines the PIE_IERIFR_t data type. More... | |
| struct | _PIE_Obj_ |
| Defines the peripheral interrupt expansion (PIE) object. More... | |
Macros | |
| #define | PIE_BASE_ADDR (0x00000CE0) |
| Defines the base address of the peripheral interrupt expansion (PIE) registers. More... | |
| #define | PIE_DBGIER_INT1_BITS (1 << 0) |
| Defines the location of the INT1 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT2_BITS (1 << 1) |
| Defines the location of the INT2 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT3_BITS (1 << 2) |
| Defines the location of the INT3 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT4_BITS (1 << 3) |
| Defines the location of the INT4 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT5_BITS (1 << 4) |
| Defines the location of the INT5 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT6_BITS (1 << 5) |
| Defines the location of the INT6 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT7_BITS (1 << 6) |
| Defines the location of the INT7 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT8_BITS (1 << 7) |
| Defines the location of the INT8 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT9_BITS (1 << 8) |
| Defines the location of the INT9 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT10_BITS (1 << 9) |
| Defines the location of the INT10 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT11_BITS (1 << 10) |
| Defines the location of the INT11 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT12_BITS (1 << 11) |
| Defines the location of the INT12 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT13_BITS (1 << 12) |
| Defines the location of the INT13 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_INT14_BITS (1 << 13) |
| Defines the location of the INT14 bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_DLOGINT_BITS (1 << 14) |
| Defines the location of the DLOGINT bits in the DBGIER register. More... | |
| #define | PIE_DBGIER_RTOSINT_BITS (1 << 15) |
| Defines the location of the RTOSINT bits in the DBGIER register. More... | |
| #define | PIE_IER_INT1_BITS (1 << 0) |
| Defines the location of the INT1 bits in the IER register. More... | |
| #define | PIE_IER_INT2_BITS (1 << 1) |
| Defines the location of the INT2 bits in the IER register. More... | |
| #define | PIE_IER_INT3_BITS (1 << 2) |
| Defines the location of the INT3 bits in the IER register. More... | |
| #define | PIE_IER_INT4_BITS (1 << 3) |
| Defines the location of the INT4 bits in the IER register. More... | |
| #define | PIE_IER_INT5_BITS (1 << 4) |
| Defines the location of the INT5 bits in the IER register. More... | |
| #define | PIE_IER_INT6_BITS (1 << 5) |
| Defines the location of the INT6 bits in the IER register. More... | |
| #define | PIE_IER_INT7_BITS (1 << 6) |
| Defines the location of the INT7 bits in the IER register. More... | |
| #define | PIE_IER_INT8_BITS (1 << 7) |
| Defines the location of the INT8 bits in the IER register. More... | |
| #define | PIE_IER_INT9_BITS (1 << 8) |
| Defines the location of the INT9 bits in the IER register. More... | |
| #define | PIE_IER_INT10_BITS (1 << 9) |
| Defines the location of the INT10 bits in the IER register. More... | |
| #define | PIE_IER_INT11_BITS (1 << 10) |
| Defines the location of the INT11 bits in the IER register. More... | |
| #define | PIE_IER_INT12_BITS (1 << 11) |
| Defines the location of the INT12 bits in the IER register. More... | |
| #define | PIE_IER_INT13_BITS (1 << 12) |
| Defines the location of the INT13 bits in the IER register. More... | |
| #define | PIE_IER_INT14_BITS (1 << 13) |
| Defines the location of the INT14 bits in the IER register. More... | |
| #define | PIE_IER_DLOGINT_BITS (1 << 14) |
| Defines the location of the DLOGINT bits in the IER register. More... | |
| #define | PIE_IER_RTOSINT_BITS (1 << 15) |
| Defines the location of the RTOSINT bits in the IER register. More... | |
| #define | PIE_IERx_INTx1_BITS (1 << 0) |
| Defines the location of the INTx1 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx2_BITS (1 << 1) |
| Defines the location of the INTx2 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx3_BITS (1 << 2) |
| Defines the location of the INTx3 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx4_BITS (1 << 3) |
| Defines the location of the INTx4 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx5_BITS (1 << 4) |
| Defines the location of the INTx5 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx6_BITS (1 << 5) |
| Defines the location of the INTx6 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx7_BITS (1 << 6) |
| Defines the location of the INTx7 bits in the IERx register. More... | |
| #define | PIE_IERx_INTx8_BITS (1 << 7) |
| Defines the location of the INTx8 bits in the IERx register. More... | |
| #define | PIE_IFR_INT1_BITS (1 << 0) |
| Defines the location of the INT1 bits in the IFR register. More... | |
| #define | PIE_IFR_INT2_BITS (1 << 1) |
| Defines the location of the INT2 bits in the IFR register. More... | |
| #define | PIE_IFR_INT3_BITS (1 << 2) |
| Defines the location of the INT3 bits in the IFR register. More... | |
| #define | PIE_IFR_INT4_BITS (1 << 3) |
| Defines the location of the INT4 bits in the IFR register. More... | |
| #define | PIE_IFR_INT5_BITS (1 << 4) |
| Defines the location of the INT5 bits in the IFR register. More... | |
| #define | PIE_IFR_INT6_BITS (1 << 5) |
| Defines the location of the INT6 bits in the IFR register. More... | |
| #define | PIE_IFR_INT7_BITS (1 << 6) |
| Defines the location of the INT7 bits in the IFR register. More... | |
| #define | PIE_IFR_INT8_BITS (1 << 7) |
| Defines the location of the INT8 bits in the IFR register. More... | |
| #define | PIE_IFR_INT9_BITS (1 << 8) |
| Defines the location of the INT9 bits in the IFR register. More... | |
| #define | PIE_IFR_INT10_BITS (1 << 9) |
| Defines the location of the INT10 bits in the IFR register. More... | |
| #define | PIE_IFR_INT11_BITS (1 << 10) |
| Defines the location of the INT11 bits in the IFR register. More... | |
| #define | PIE_IFR_INT12_BITS (1 << 11) |
| Defines the location of the INT12 bits in the IFR register. More... | |
| #define | PIE_IFR_INT13_BITS (1 << 12) |
| Defines the location of the INT13 bits in the IFR register. More... | |
| #define | PIE_IFR_INT14_BITS (1 << 13) |
| Defines the location of the INT14 bits in the IFR register. More... | |
| #define | PIE_IFR_DLOGINT_BITS (1 << 14) |
| Defines the location of the DLOGINT bits in the IFR register. More... | |
| #define | PIE_IFR_RTOSINT_BITS (1 << 15) |
| Defines the location of the RTOSINT bits in the IFR register. More... | |
| #define | PIE_IFRx_INTx1_BITS (1 << 0) |
| Defines the location of the INTx1 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx2_BITS (1 << 1) |
| Defines the location of the INTx2 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx3_BITS (1 << 2) |
| Defines the location of the INTx3 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx4_BITS (1 << 3) |
| Defines the location of the INTx4 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx5_BITS (1 << 4) |
| Defines the location of the INTx5 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx6_BITS (1 << 5) |
| Defines the location of the INTx6 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx7_BITS (1 << 6) |
| Defines the location of the INTx7 bits in the IFRx register. More... | |
| #define | PIE_IFRx_INTx8_BITS (1 << 7) |
| Defines the location of the INTx8 bits in the IFRx register. More... | |
| #define | PIE_PIECTRL_ENPIE_BITS (1 << 0) |
| Defines the location of the ENPIE bits in the PIECTRL register. More... | |
| #define | PIE_PIECTRL_PIEVECT_BITS (32767 << 1) |
| Defines the location of the PIEVECT bits in the PIECTRL register. More... | |
| #define | PIE_PIEACK_GROUP1_BITS (1 << 0) |
| Defines the location of the GROUP1 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP2_BITS (1 << 1) |
| Defines the location of the GROUP2 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP3_BITS (1 << 2) |
| Defines the location of the GROUP3 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP4_BITS (1 << 3) |
| Defines the location of the GROUP4 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP5_BITS (1 << 4) |
| Defines the location of the GROUP5 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP6_BITS (1 << 5) |
| Defines the location of the GROUP6 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP7_BITS (1 << 6) |
| Defines the location of the GROUP7 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP8_BITS (1 << 7) |
| Defines the location of the GROUP8 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP9_BITS (1 << 8) |
| Defines the location of the GROUP9 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP10_BITS (1 << 9) |
| Defines the location of the GROUP10 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP11_BITS (1 << 10) |
| Defines the location of the GROUP11 bits in the PIEACK register. More... | |
| #define | PIE_PIEACK_GROUP12_BITS (1 << 11) |
| Defines the location of the GROUP12 bits in the PIEACK register. More... | |
| #define | PIE_XINTnCR_POLARITY_BITS (3 << 2) |
| #define | PIE_XINTnCR_ENABLE_BITS (1 << 0) |
Typedefs | |
| typedef interrupt void(* | PIE_IntVec_t) (void) |
| Defines the type for an interrupt vector. More... | |
| typedef struct _PIE_IERIFR_t | PIE_IERIFR_t |
| Defines the PIE_IERIFR_t data type. More... | |
| typedef struct _PIE_Obj_ | PIE_Obj |
| Defines the peripheral interrupt expansion (PIE) object. More... | |
| typedef struct _PIE_Obj_ * | PIE_Handle |
| Defines the peripheral interrupt expansion (PIE) handle. More... | |
Functions | |
| void | PIE_clearAllInts (PIE_Handle pieHandle) |
| Clears all the interrupts. More... | |
| void | PIE_clearAllFlags (PIE_Handle pieHandle) |
| Clears all the interrupt flags. More... | |
| static void | PIE_clearInt (PIE_Handle pieHandle, const PIE_GroupNumber_e groupNumber) |
| Clears an interrupt defined by group number. More... | |
| void | PIE_disable (PIE_Handle pieHandle) |
| Disables the peripheral interrupt expansion (PIE) More... | |
| void | PIE_disableAllInts (PIE_Handle pieHandle) |
| Disables all of the interrupts. More... | |
| void | PIE_disableCaptureInt (PIE_Handle pieHandle) |
| Disables the capture interrupt. More... | |
| void | PIE_disableInt (PIE_Handle pieHandle, const PIE_GroupNumber_e group, const PIE_InterruptSource_e intSource) |
| Disable a specific PIE interrupt. More... | |
| void | PIE_enable (PIE_Handle pieHandle) |
| Enables the peripheral interrupt expansion (PIE) More... | |
| void | PIE_enableAdcInt (PIE_Handle pieHandle, const ADC_IntNumber_e intNumber) |
| Enables the specified ADC interrupt. More... | |
| void | PIE_enableCaptureInt (PIE_Handle pieHandle) |
| Enables the capture interrupt. More... | |
| void | PIE_enableExtInt (PIE_Handle pieHandle, const CPU_ExtIntNumber_e intNumber) |
| Enables the prescribed external interrupt. More... | |
| void | PIE_enableInt (PIE_Handle pieHandle, const PIE_GroupNumber_e group, const PIE_InterruptSource_e intSource) |
| Enable a specific PIE interrupt. More... | |
| void | PIE_enablePwmInt (PIE_Handle pieHandle, const PWM_Number_e pwmNumber) |
| Enables the PWM interrupt. More... | |
| void | PIE_enablePwmTzInt (PIE_Handle pieHandle, const PWM_Number_e pwmNumber) |
| Enables the PWM Trip Zone interrupt. More... | |
| void | PIE_enableTimer0Int (PIE_Handle pieHandle) |
| Enables the Cpu Timer 0 interrupt. More... | |
| uint16_t | PIE_getExtIntCount (PIE_Handle pieHandle, const CPU_ExtIntNumber_e intNumber) |
| Gets the external interrupt count value. More... | |
| uint16_t | PIE_getIntEnables (PIE_Handle pieHandle, const PIE_GroupNumber_e group) |
| Gets PIE interrupt enable values. More... | |
| uint16_t | PIE_getIntFlags (PIE_Handle pieHandle, const PIE_GroupNumber_e group) |
| Gets PIE interrupt flag values. More... | |
| void | PIE_forceInt (PIE_Handle pieHandle, const PIE_GroupNumber_e group, const PIE_InterruptSource_e intSource) |
| Force a specific PIE interrupt. More... | |
| interrupt void | PIE_illegalIsr (void) |
| Defines an illegal interrupt service routine - if the program pointer references this function, there is an incorrect mapping in the PIE interrupt table. More... | |
| PIE_Handle | PIE_init (void *pMemory, const size_t numBytes) |
| Initializes the peripheral interrupt expansion (PIE) object handle. More... | |
| void | PIE_registerPieIntHandler (PIE_Handle pieHandle, const PIE_GroupNumber_e groupNumber, const PIE_SubGroupNumber_e subGroupNumber, const PIE_IntVec_t vector) |
| Registers a handler for a PIE interrupt. More... | |
| void | PIE_registerSystemIntHandler (PIE_Handle pieHandle, const PIE_SystemInterrupts_e systemInt, const PIE_IntVec_t vector) |
| Registers a handler for a PIE interrupt. More... | |
| void | PIE_setDefaultIntVectorTable (PIE_Handle pieHandle) |
| Initializes the vector table with illegal ISR handlers. More... | |
| void | PIE_setExtIntPolarity (PIE_Handle pieHandle, const CPU_ExtIntNumber_e intNumber, const PIE_ExtIntPolarity_e polarity) |
| Sets the external interrupt polarity. More... | |
| void | PIE_unregisterPieIntHandler (PIE_Handle pieHandle, const PIE_GroupNumber_e groupNumber, const PIE_SubGroupNumber_e subGroupNumber) |
| Unregisters a handler for a PIE interrupt. More... | |
| void | PIE_unregisterSystemIntHandler (PIE_Handle pieHandle, const PIE_SystemInterrupts_e systemInt) |
| Unregisters a handler for a PIE interrupt. More... | |
| struct _PIE_IERIFR_t |
| struct _PIE_Obj_ |
| Data Fields | ||
|---|---|---|
| volatile PIE_IntVec_t | ADCINT1 | ADCINT1 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT1_HP | ADC high priority interrupt. |
| volatile PIE_IntVec_t | ADCINT2 | ADCINT2 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT2_HP | ADC high priority interrupt. |
| volatile PIE_IntVec_t | ADCINT3 | ADCINT3 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT4 | ADCINT4 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT5 | ADCINT5 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT6 | ADCINT6 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT7 | ADCINT7 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT8 | ADCINT8 interrupt vector. |
| volatile PIE_IntVec_t | ADCINT9 | ADCINT9 interrupt vector. |
| volatile PIE_IntVec_t | CLAINT1 | CLA Interrupt 1. |
| volatile PIE_IntVec_t | CLAINT2 | CLA Interrupt 2. |
| volatile PIE_IntVec_t | CLAINT3 | CLA Interrupt 3. |
| volatile PIE_IntVec_t | CLAINT4 | CLA Interrupt 4. |
| volatile PIE_IntVec_t | CLAINT5 | CLA Interrupt 5. |
| volatile PIE_IntVec_t | CLAINT6 | CLA Interrupt 6. |
| volatile PIE_IntVec_t | CLAINT7 | CLA Interrupt 7. |
| volatile PIE_IntVec_t | CLAINT8 | CLA Interrupt 8. |
| volatile PIE_IntVec_t | CLAINT_LUF | CLA Interrupt LUF. |
| volatile PIE_IntVec_t | CLAINT_LVF | CLA Interrupt LVF. |
| volatile PIE_IntVec_t | DATALOG | DATALOG interrupt vector. |
| volatile PIE_IntVec_t | DMACH1_INT | DMA Channel 1. |
| volatile PIE_IntVec_t | DMACH2_INT | DMA Channel 2. |
| volatile PIE_IntVec_t | DMACH3_INT | DMA Channel 3. |
| volatile PIE_IntVec_t | DMACH4_INT | DMA Channel 4. |
| volatile PIE_IntVec_t | DMACH5_INT | DMA Channel 5. |
| volatile PIE_IntVec_t | DMACH6_INT | DMA Channel 6. |
| volatile PIE_IntVec_t | ECAN0INT | ECAN0INT interrupt vector. |
| volatile PIE_IntVec_t | ECAN1INT | ECAN1INT interrupt vector. |
| volatile PIE_IntVec_t | ECAP1_INT | ECAP1_INT interrupt vector. |
| volatile PIE_IntVec_t | ECAP2_INT | ECAP2_INT interrupt vector. |
| volatile PIE_IntVec_t | ECAP3_INT | ECAP3_INT interrupt vector. |
| volatile PIE_IntVec_t | EMUINT | EMUINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM1_INT | EPWM1 interrupt vector. |
| volatile PIE_IntVec_t | EPWM1_TZINT | EPWM1_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM2_INT | EPWM2 interrupt vector. |
| volatile PIE_IntVec_t | EPWM2_TZINT | EPWM2_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM3_INT | EPWM3 interrupt vector. |
| volatile PIE_IntVec_t | EPWM3_TZINT | EPWM3_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM4_INT | EPWM4 interrupt vector. |
| volatile PIE_IntVec_t | EPWM4_TZINT | EPWM4_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM5_INT | EPWM5_INT interrupt vector. |
| volatile PIE_IntVec_t | EPWM5_TZINT | EPWM5_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM6_INT | EPWM6_INT interrupt vector. |
| volatile PIE_IntVec_t | EPWM6_TZINT | EPWM6_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM7_INT | EPWM7_INT interrupt vector. |
| volatile PIE_IntVec_t | EPWM7_TZINT | EPWM7_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EPWM8_INT | EPWM8_INT interrupt vector. |
| volatile PIE_IntVec_t | EPWM8_TZINT | EPWM8_TZINT interrupt vector. |
| volatile PIE_IntVec_t | EQEP1_INT | EQEP1_INT interrupt vector. |
| volatile PIE_IntVec_t | EQEP2_INT | EQEP2_INT interrupt vector. |
| volatile PIE_IntVec_t | HRCAP1_INT | HRCAP1_INT interrupt vector. |
| volatile PIE_IntVec_t | HRCAP2_INT | HRCAP2_INT interrupt vector. |
| volatile PIE_IntVec_t | HRCAP3_INT | HRCAP3_INT interrupt vector. |
| volatile PIE_IntVec_t | HRCAP4_INT | HRCAP4_INT interrupt vector. |
| volatile PIE_IntVec_t | I2CINT1A | I2CINT1A interrupt vector. |
| volatile PIE_IntVec_t | I2CINT2A | I2CINT2A interrupt vector. |
| volatile PIE_IntVec_t | ILLEGAL | ILLEGAL interrupt vector. |
| volatile PIE_IntVec_t | INT1 | INT1 interrupt vector. |
| volatile PIE_IntVec_t | INT10 | INT10 interrupt vector. |
| volatile PIE_IntVec_t | INT11 | INT11 interrupt vector. |
| volatile PIE_IntVec_t | INT12 | INT12 interrupt vector. |
| volatile PIE_IntVec_t | INT2 | INT2 interrupt vector. |
| volatile PIE_IntVec_t | INT3 | INT3 interrupt vector. |
| volatile PIE_IntVec_t | INT4 | INT4 interrupt vector. |
| volatile PIE_IntVec_t | INT5 | INT5 interrupt vector. |
| volatile PIE_IntVec_t | INT6 | INT6 interrupt vector. |
| volatile PIE_IntVec_t | INT7 | INT7 interrupt vector. |
| volatile PIE_IntVec_t | INT8 | INT8 interrupt vector. |
| volatile PIE_IntVec_t | INT9 | INT9 interrupt vector. |
| volatile PIE_IntVec_t | MCBSPARX | McBSP A RX Interrupt. |
| volatile PIE_IntVec_t | MCBSPATX | McBSP A TX Interrupt. |
| volatile PIE_IntVec_t | NMI | NMI interrupt vector. |
| volatile uint16_t | PIEACK | PIE Acknowledge Register. |
| volatile uint16_t | PIECTRL | PIE Control Register. |
| volatile PIE_IERIFR_t | PIEIER_PIEIFR[12] | PIE Interrupt Enable Register and PIE Interrupt Flag Register. |
| volatile PIE_IntVec_t | Reset | Reset interrupt vector. |
| volatile PIE_IntVec_t | rsvd12_2 | Reserved. |
| volatile PIE_IntVec_t | rsvd12_3 | Reserved. |
| volatile PIE_IntVec_t | rsvd12_4 | Reserved. |
| volatile PIE_IntVec_t | rsvd12_5 | Reserved. |
| volatile PIE_IntVec_t | rsvd12_6 | Reserved. |
| volatile uint16_t | rsvd13[25200] | Reserved. |
| volatile uint16_t | rsvd14[5] | Reserved. |
| volatile PIE_IntVec_t | rsvd1_3 | Reserved. |
| volatile PIE_IntVec_t | rsvd4_4 | Reserved. |
| volatile PIE_IntVec_t | rsvd4_5 | Reserved. |
| volatile PIE_IntVec_t | rsvd4_6 | Reserved. |
| volatile PIE_IntVec_t | rsvd5_3 | Reserved. |
| volatile PIE_IntVec_t | rsvd5_6 | Reserved. |
| volatile PIE_IntVec_t | rsvd5_7 | Reserved. |
| volatile PIE_IntVec_t | rsvd6_7 | Reserved. |
| volatile PIE_IntVec_t | rsvd6_8 | Reserved. |
| volatile PIE_IntVec_t | rsvd7_7 | Reserved. |
| volatile PIE_IntVec_t | rsvd7_8 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_3 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_4 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_5 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_6 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_7 | Reserved. |
| volatile PIE_IntVec_t | rsvd8_8 | Reserved. |
| volatile PIE_IntVec_t | rsvd9_7 | Reserved. |
| volatile PIE_IntVec_t | rsvd9_8 | Reserved. |
| volatile uint16_t | rsvd_1[6] | Reserved. |
| volatile PIE_IntVec_t | RTOSINT | RTOSINT interrupt vector. |
| volatile PIE_IntVec_t | SCIRXINTA | SCIRXINTA interrupt vector. |
| volatile PIE_IntVec_t | SCIRXINTB | SPIRXINTB interrupt vector. |
| volatile PIE_IntVec_t | SCITXINTA | SCITXINTA interrupt vector. |
| volatile PIE_IntVec_t | SCITXINTB | SPITXINTB interrupt vector. |
| volatile PIE_IntVec_t | SPIRXINTA | SPIRXINTA interrupt vector. |
| volatile PIE_IntVec_t | SPIRXINTB | SPIRXINTB interrupt vector. |
| volatile PIE_IntVec_t | SPITXINTA | SPITXINTA interrupt vector. |
| volatile PIE_IntVec_t | SPITXINTB | SPITXINTB interrupt vector. |
| volatile PIE_IntVec_t | TINT0 | TINT0 interrupt vector. |
| volatile PIE_IntVec_t | TINT1 | INT13 interrupt vector. |
| volatile PIE_IntVec_t | TINT2 | INT14 interrupt vector. |
| volatile PIE_IntVec_t | USB0_INT | USB 0 interrupt source. |
| volatile PIE_IntVec_t | USER1 | USER1 interrupt vector. |
| volatile PIE_IntVec_t | USER10 | USER10 interrupt vector. |
| volatile PIE_IntVec_t | USER11 | USER11 interrupt vector. |
| volatile PIE_IntVec_t | USER12 | USER12 interrupt vector. |
| volatile PIE_IntVec_t | USER2 | USER2 interrupt vector. |
| volatile PIE_IntVec_t | USER3 | USER3 interrupt vector. |
| volatile PIE_IntVec_t | USER4 | USER4 interrupt vector. |
| volatile PIE_IntVec_t | USER5 | USER5 interrupt vector. |
| volatile PIE_IntVec_t | USER6 | USER6 interrupt vector. |
| volatile PIE_IntVec_t | USER7 | USER7 interrupt vector. |
| volatile PIE_IntVec_t | USER8 | USER8 interrupt vector. |
| volatile PIE_IntVec_t | USER9 | USER9 interrupt vector. |
| volatile PIE_IntVec_t | WAKEINT | WAKEINT interrupt vector. |
| volatile PIE_IntVec_t | XINT1 | XINT1 interrupt vector. |
| volatile PIE_IntVec_t | XINT2 | XINT2 interrupt vector. |
| volatile PIE_IntVec_t | XINT3 | XINT3 interrupt vector. |
| volatile uint16_t | XINTnCR[3] | External Interrupt n Control Register. |
| volatile uint16_t | XINTnCTR[3] | External Interrupt n Counter Register. |
| #define PIE_BASE_ADDR (0x00000CE0) |
| #define PIE_DBGIER_DLOGINT_BITS (1 << 14) |
| #define PIE_DBGIER_INT10_BITS (1 << 9) |
| #define PIE_DBGIER_INT11_BITS (1 << 10) |
| #define PIE_DBGIER_INT12_BITS (1 << 11) |
| #define PIE_DBGIER_INT13_BITS (1 << 12) |
| #define PIE_DBGIER_INT14_BITS (1 << 13) |
| #define PIE_DBGIER_INT1_BITS (1 << 0) |
| #define PIE_DBGIER_INT2_BITS (1 << 1) |
| #define PIE_DBGIER_INT3_BITS (1 << 2) |
| #define PIE_DBGIER_INT4_BITS (1 << 3) |
| #define PIE_DBGIER_INT5_BITS (1 << 4) |
| #define PIE_DBGIER_INT6_BITS (1 << 5) |
| #define PIE_DBGIER_INT7_BITS (1 << 6) |
| #define PIE_DBGIER_INT8_BITS (1 << 7) |
| #define PIE_DBGIER_INT9_BITS (1 << 8) |
| #define PIE_DBGIER_RTOSINT_BITS (1 << 15) |
| #define PIE_IER_DLOGINT_BITS (1 << 14) |
| #define PIE_IER_INT10_BITS (1 << 9) |
| #define PIE_IER_INT11_BITS (1 << 10) |
| #define PIE_IER_INT12_BITS (1 << 11) |
| #define PIE_IER_INT13_BITS (1 << 12) |
| #define PIE_IER_INT14_BITS (1 << 13) |
| #define PIE_IER_INT1_BITS (1 << 0) |
| #define PIE_IER_INT2_BITS (1 << 1) |
| #define PIE_IER_INT3_BITS (1 << 2) |
| #define PIE_IER_INT4_BITS (1 << 3) |
| #define PIE_IER_INT5_BITS (1 << 4) |
| #define PIE_IER_INT6_BITS (1 << 5) |
| #define PIE_IER_INT7_BITS (1 << 6) |
| #define PIE_IER_INT8_BITS (1 << 7) |
| #define PIE_IER_INT9_BITS (1 << 8) |
| #define PIE_IER_RTOSINT_BITS (1 << 15) |
| #define PIE_IERx_INTx1_BITS (1 << 0) |
Defines the location of the INTx1 bits in the IERx register.
Definition at line 206 of file pie.h.
Referenced by PIE_disableCaptureInt(), and PIE_enableCaptureInt().
| #define PIE_IERx_INTx2_BITS (1 << 1) |
| #define PIE_IERx_INTx3_BITS (1 << 2) |
| #define PIE_IERx_INTx4_BITS (1 << 3) |
| #define PIE_IERx_INTx5_BITS (1 << 4) |
| #define PIE_IERx_INTx6_BITS (1 << 5) |
| #define PIE_IERx_INTx7_BITS (1 << 6) |
Defines the location of the INTx7 bits in the IERx register.
Definition at line 230 of file pie.h.
Referenced by PIE_enableTimer0Int().
| #define PIE_IERx_INTx8_BITS (1 << 7) |
| #define PIE_IFR_DLOGINT_BITS (1 << 14) |
| #define PIE_IFR_INT10_BITS (1 << 9) |
| #define PIE_IFR_INT11_BITS (1 << 10) |
| #define PIE_IFR_INT12_BITS (1 << 11) |
| #define PIE_IFR_INT13_BITS (1 << 12) |
| #define PIE_IFR_INT14_BITS (1 << 13) |
| #define PIE_IFR_INT1_BITS (1 << 0) |
| #define PIE_IFR_INT2_BITS (1 << 1) |
| #define PIE_IFR_INT3_BITS (1 << 2) |
| #define PIE_IFR_INT4_BITS (1 << 3) |
| #define PIE_IFR_INT5_BITS (1 << 4) |
| #define PIE_IFR_INT6_BITS (1 << 5) |
| #define PIE_IFR_INT7_BITS (1 << 6) |
| #define PIE_IFR_INT8_BITS (1 << 7) |
| #define PIE_IFR_INT9_BITS (1 << 8) |
| #define PIE_IFR_RTOSINT_BITS (1 << 15) |
| #define PIE_IFRx_INTx1_BITS (1 << 0) |
| #define PIE_IFRx_INTx2_BITS (1 << 1) |
| #define PIE_IFRx_INTx3_BITS (1 << 2) |
| #define PIE_IFRx_INTx4_BITS (1 << 3) |
| #define PIE_IFRx_INTx5_BITS (1 << 4) |
| #define PIE_IFRx_INTx6_BITS (1 << 5) |
| #define PIE_IFRx_INTx7_BITS (1 << 6) |
| #define PIE_IFRx_INTx8_BITS (1 << 7) |
| #define PIE_PIEACK_GROUP10_BITS (1 << 9) |
| #define PIE_PIEACK_GROUP11_BITS (1 << 10) |
| #define PIE_PIEACK_GROUP12_BITS (1 << 11) |
| #define PIE_PIEACK_GROUP1_BITS (1 << 0) |
| #define PIE_PIEACK_GROUP2_BITS (1 << 1) |
| #define PIE_PIEACK_GROUP3_BITS (1 << 2) |
| #define PIE_PIEACK_GROUP4_BITS (1 << 3) |
| #define PIE_PIEACK_GROUP5_BITS (1 << 4) |
| #define PIE_PIEACK_GROUP6_BITS (1 << 5) |
| #define PIE_PIEACK_GROUP7_BITS (1 << 6) |
| #define PIE_PIEACK_GROUP8_BITS (1 << 7) |
| #define PIE_PIEACK_GROUP9_BITS (1 << 8) |
| #define PIE_PIECTRL_ENPIE_BITS (1 << 0) |
Defines the location of the ENPIE bits in the PIECTRL register.
Definition at line 337 of file pie.h.
Referenced by PIE_disable(), and PIE_enable().
| #define PIE_PIECTRL_PIEVECT_BITS (32767 << 1) |
| #define PIE_XINTnCR_ENABLE_BITS (1 << 0) |
Definition at line 395 of file pie.h.
Referenced by PIE_disableExtInt(), and PIE_enableExtInt().
| #define PIE_XINTnCR_POLARITY_BITS (3 << 2) |
Definition at line 394 of file pie.h.
Referenced by PIE_setExtIntPolarity().
| typedef struct _PIE_Obj_* PIE_Handle |
| typedef struct _PIE_IERIFR_t PIE_IERIFR_t |
Defines the PIE_IERIFR_t data type.
| typedef interrupt void(* PIE_IntVec_t) (void) |
| enum PIE_ExtIntPolarity_e |
Enumeration to define the external interrupt polarity.
| enum PIE_GroupNumber_e |
Enumeration to define the peripheral interrupt expansion (PIE) group numbers.
Enumeration to define the peripheral interrupt expansion (PIE) individual interrupt sources.
| enum PIE_SubGroupNumber_e |
Enumeration to define the peripheral interrupt expansion (PIE) sub-group numbers.
Enumeration to define the system interrupts.
| void PIE_clearAllFlags | ( | PIE_Handle | pieHandle | ) |
Clears all the interrupt flags.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 55 of file pie.c.
References _PIE_IERIFR_t::IFR, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_clearAllInts | ( | PIE_Handle | pieHandle | ) |
Clears all the interrupts.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 70 of file pie.c.
References _PIE_Obj_::PIEACK.
|
inlinestatic |
Clears an interrupt defined by group number.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | groupNumber | The group number |
Definition at line 791 of file pie.h.
References _PIE_Obj_::PIEACK.
| void PIE_disable | ( | PIE_Handle | pieHandle | ) |
Disables the peripheral interrupt expansion (PIE)
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 82 of file pie.c.
References PIE_PIECTRL_ENPIE_BITS, and _PIE_Obj_::PIECTRL.
| void PIE_disableAllInts | ( | PIE_Handle | pieHandle | ) |
Disables all of the interrupts.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 116 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_disableCaptureInt | ( | PIE_Handle | pieHandle | ) |
Disables the capture interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 93 of file pie.c.
References _PIE_IERIFR_t::IER, PIE_IERx_INTx1_BITS, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_disableInt | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | group, | ||
| const PIE_InterruptSource_e | intSource | ||
| ) |
Disable a specific PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | group | The PIE group an interrupt belongs to |
| [in] | intSource | The specific interrupt source to disable |
Definition at line 130 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enable | ( | PIE_Handle | pieHandle | ) |
Enables the peripheral interrupt expansion (PIE)
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 140 of file pie.c.
References PIE_PIECTRL_ENPIE_BITS, and _PIE_Obj_::PIECTRL.
| void PIE_enableAdcInt | ( | PIE_Handle | pieHandle, |
| const ADC_IntNumber_e | intNumber | ||
| ) |
Enables the specified ADC interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | intNumber | The interrupt number |
Definition at line 152 of file pie.c.
References ADC_IntNumber_9, _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enableCaptureInt | ( | PIE_Handle | pieHandle | ) |
Enables the capture interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 181 of file pie.c.
References _PIE_IERIFR_t::IER, PIE_IERx_INTx1_BITS, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enableExtInt | ( | PIE_Handle | pieHandle, |
| const CPU_ExtIntNumber_e | intNumber | ||
| ) |
Enables the prescribed external interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
| [in] | intNumber | The interrupt number |
Definition at line 192 of file pie.c.
References CPU_ExtIntNumber_3, _PIE_IERIFR_t::IER, PIE_XINTnCR_ENABLE_BITS, _PIE_Obj_::PIEIER_PIEIFR, and _PIE_Obj_::XINTnCR.
| void PIE_enableInt | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | group, | ||
| const PIE_InterruptSource_e | intSource | ||
| ) |
Enable a specific PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | group | The PIE group an interrupt belongs to |
| [in] | intSource | The specific interrupt source to enable |
Definition at line 221 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enablePwmInt | ( | PIE_Handle | pieHandle, |
| const PWM_Number_e | pwmNumber | ||
| ) |
Enables the PWM interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
| [in] | pwmNumber | The PWM number |
Definition at line 231 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enablePwmTzInt | ( | PIE_Handle | pieHandle, |
| const PWM_Number_e | pwmNumber | ||
| ) |
Enables the PWM Trip Zone interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
| [in] | pwmNumber | The PWM number |
Definition at line 244 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_enableTimer0Int | ( | PIE_Handle | pieHandle | ) |
Enables the Cpu Timer 0 interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
Definition at line 257 of file pie.c.
References _PIE_IERIFR_t::IER, PIE_IERx_INTx7_BITS, and _PIE_Obj_::PIEIER_PIEIFR.
| void PIE_forceInt | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | group, | ||
| const PIE_InterruptSource_e | intSource | ||
| ) |
Force a specific PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | group | The PIE group an interrupt belongs to |
| [in] | intSource | The specific interrupt source to force |
Definition at line 268 of file pie.c.
References _PIE_IERIFR_t::IFR, and _PIE_Obj_::PIEIER_PIEIFR.
| uint16_t PIE_getExtIntCount | ( | PIE_Handle | pieHandle, |
| const CPU_ExtIntNumber_e | intNumber | ||
| ) |
Gets the external interrupt count value.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
| [in] | intNumber | The external interrupt number |
Definition at line 278 of file pie.c.
References _PIE_Obj_::XINTnCTR.
| uint16_t PIE_getIntEnables | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | group | ||
| ) |
Gets PIE interrupt enable values.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | group | The PIE group the flags belong to |
Definition at line 290 of file pie.c.
References _PIE_IERIFR_t::IER, and _PIE_Obj_::PIEIER_PIEIFR.
| uint16_t PIE_getIntFlags | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | group | ||
| ) |
Gets PIE interrupt flag values.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | group | The PIE group the flags belong to |
Definition at line 298 of file pie.c.
References _PIE_IERIFR_t::IFR, and _PIE_Obj_::PIEIER_PIEIFR.
| interrupt void PIE_illegalIsr | ( | void | ) |
Defines an illegal interrupt service routine - if the program pointer references this function, there is an incorrect mapping in the PIE interrupt table.
Definition at line 306 of file pie.c.
Referenced by PIE_setDefaultIntVectorTable(), PIE_unregisterPieIntHandler(), and PIE_unregisterSystemIntHandler().
| PIE_Handle PIE_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
Initializes the peripheral interrupt expansion (PIE) object handle.
| [in] | pMemory | A pointer to the memory for the PIE object |
| [in] | numBytes | The number of bytes allocated for the PIE object, bytes |
| void PIE_registerPieIntHandler | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | groupNumber, | ||
| const PIE_SubGroupNumber_e | subGroupNumber, | ||
| const PIE_IntVec_t | vector | ||
| ) |
Registers a handler for a PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | groupNumber | The PIE group an interrupt belongs to |
| [in] | subGroupNumber | The PIE subgroup an interrupt belongs to |
| [in] | vector | The specific interrupt handler |
Definition at line 334 of file pie.c.
References _PIE_Obj_::ADCINT1_HP, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void PIE_registerSystemIntHandler | ( | PIE_Handle | pieHandle, |
| const PIE_SystemInterrupts_e | systemInt, | ||
| const PIE_IntVec_t | vector | ||
| ) |
Registers a handler for a PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | systemInt | The system interrupt to register this handler to |
| [in] | vector | The specific interrupt handler |
Definition at line 362 of file pie.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PIE_Obj_::Reset.
| void PIE_setDefaultIntVectorTable | ( | PIE_Handle | pieHandle | ) |
Initializes the vector table with illegal ISR handlers.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
Definition at line 386 of file pie.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PIE_Obj_::INT1, and PIE_illegalIsr().
| void PIE_setExtIntPolarity | ( | PIE_Handle | pieHandle, |
| const CPU_ExtIntNumber_e | intNumber, | ||
| const PIE_ExtIntPolarity_e | polarity | ||
| ) |
Sets the external interrupt polarity.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) handle |
| [in] | intNumber | The external interrupt number |
| [in] | polarity | The signal polarity |
Definition at line 406 of file pie.c.
References PIE_XINTnCR_POLARITY_BITS, and _PIE_Obj_::XINTnCR.
| void PIE_unregisterPieIntHandler | ( | PIE_Handle | pieHandle, |
| const PIE_GroupNumber_e | groupNumber, | ||
| const PIE_SubGroupNumber_e | subGroupNumber | ||
| ) |
Unregisters a handler for a PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | groupNumber | The PIE group an interrupt belongs to |
| [in] | subGroupNumber | The PIE subgroup an interrupt belongs to |
Definition at line 423 of file pie.c.
References _PIE_Obj_::ADCINT1_HP, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PIE_illegalIsr().
| void PIE_unregisterSystemIntHandler | ( | PIE_Handle | pieHandle, |
| const PIE_SystemInterrupts_e | systemInt | ||
| ) |
Unregisters a handler for a PIE interrupt.
| [in] | pieHandle | The peripheral interrupt expansion (PIE) object handle |
| [in] | systemInt | The system interrupt to unregister |
Definition at line 450 of file pie.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PIE_illegalIsr(), and _PIE_Obj_::Reset.
1.8.9.1