PIC24 Support Libraries
Macros
esos_pic24_irq.h File Reference

This file contains macros, prototypes, and definitions for Microchip PIC24 family specific interrupts on ESOS. More...

#include "esos.h"
#include "esos_irq.h"
#include "esos_pic24.h"

Go to the source code of this file.

Macros

#define ESOS_USER_INTERRUPT(desc)
 
#define ESOS_USER_IRQ_LEVEL1
 
#define ESOS_USER_IRQ_LEVEL2
 
#define ESOS_USER_IRQ_LEVEL3
 
#define ESOS_USER_IRQ_LEVEL4
 
#define ESOS_IRQ_PIC24_U1TX
 
#define ESOS_IRQ_PIC24_U1RX
 
#define ESOS_IRQ_PIC24_U1E
 
#define ESOS_UNREGISTER_PIC24_USER_INTERRUPT(desc)
 
#define ESOS_REGISTER_PIC24_USER_INTERRUPT(desc, ipl, p2f)
 
#define ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS()
 
#define ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS()
 
#define ESOS_IS_PIC24_USER_INTERRUPT_ENABLED(desc)
 
#define ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING(desc)
 
#define ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED(desc)
 
#define ESOS_ENABLE_PIC24_USER_INTERRUPT(desc)
 
#define ESOS_DISABLE_PIC24_USER_INTERRUPT(desc)
 

Detailed Description

This file contains macros, prototypes, and definitions for Microchip PIC24 family specific interrupts on ESOS.

Definition in file esos_pic24_irq.h.

Macro Definition Documentation

◆ ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS

#define ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS ( )

◆ ESOS_DISABLE_PIC24_USER_INTERRUPT

#define ESOS_DISABLE_PIC24_USER_INTERRUPT (   desc)

Disables the user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2307 of file esos_pic24_irq.h.

◆ ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING

#define ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING (   desc)

Queries the "flag" state of user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
Return values
TRUEIf the user interrupt is needs to be serviced
FALSEOtherwise
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2250 of file esos_pic24_irq.h.

◆ ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS

#define ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS ( )

◆ ESOS_ENABLE_PIC24_USER_INTERRUPT

#define ESOS_ENABLE_PIC24_USER_INTERRUPT (   desc)

Enables the user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2288 of file esos_pic24_irq.h.

◆ ESOS_IRQ_PIC24_U1E

#define ESOS_IRQ_PIC24_U1E

◆ ESOS_IRQ_PIC24_U1RX

#define ESOS_IRQ_PIC24_U1RX

◆ ESOS_IRQ_PIC24_U1TX

#define ESOS_IRQ_PIC24_U1TX

◆ ESOS_IS_PIC24_USER_INTERRUPT_ENABLED

#define ESOS_IS_PIC24_USER_INTERRUPT_ENABLED (   desc)

Queries the enabled state of user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
Return values
TRUEIf the user interrupt is currently enabled
FALSEIf the user interrupt is currently disabled
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2229 of file esos_pic24_irq.h.

◆ ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

#define ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED (   desc)

Tells ESOS to mark the user interrupt denoted by the interrupt descriptor as being serviced

Parameters
descDescriptor of the hardware interrupt
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2269 of file esos_pic24_irq.h.

◆ ESOS_REGISTER_PIC24_USER_INTERRUPT

#define ESOS_REGISTER_PIC24_USER_INTERRUPT (   desc,
  ipl,
  p2f 
)

Registers the user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
iplInterrupt Priority Level (IPL) for the interrupt being registered
p2fPointer to function to serve as the ISR. Function must have void arguments and return void
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2171 of file esos_pic24_irq.h.

◆ ESOS_UNREGISTER_PIC24_USER_INTERRUPT

#define ESOS_UNREGISTER_PIC24_USER_INTERRUPT (   desc)

Unregisters the user interrupt denoted by the interrupt descriptor

Parameters
descDescriptor of the hardware interrupt
Note
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_USER_INTERRUPT
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 2144 of file esos_pic24_irq.h.

◆ ESOS_USER_INTERRUPT

#define ESOS_USER_INTERRUPT (   desc)

Declaration of an ESOS interrupt.

This macro is used to declare an ESOS user inerrupt. All ESOS user interrupt tasks must be declared with this macro.

Parameters
descDescriptor of the hardware interrupt
Note
ESOS user interrupts have no arguments passed in and cannot return values.
Hardware interrupt descriptors are found in the file esos_hw_irq.h where hw is the name of the chip for the ESOS port has been written.
See also
ESOS_REGISTER_PIC24_USER_INTERRUPT
ESOS_UNREGISTER_PIC24_USER_INTERRUPT
ESOS_ENABLE_PIC24_USER_INTERRUPT
ESOS_DISABLE_PIC24_USER_INTERRUPT
ESOS_ENABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_DISABLE_ALL_PIC24_USER_INTERRUPTS
ESOS_IS_PIC24_USER_INTERRUPT_ENABLED
ESOS_DOES_PIC24_USER_INTERRUPT_NEED_SERVICING
ESOS_MARK_PIC24_USER_INTERRUPT_SERVICED

Definition at line 75 of file esos_pic24_irq.h.

◆ ESOS_USER_IRQ_LEVEL1

#define ESOS_USER_IRQ_LEVEL1

Highest priority user interrupt level on PIC24 Family

See also
ESOS_REGISTER_PIC24_USER_INTERRUPT

Definition at line 93 of file esos_pic24_irq.h.

◆ ESOS_USER_IRQ_LEVEL2

#define ESOS_USER_IRQ_LEVEL2

Second-highest priority user interrupt level on PIC24 Family

See also
ESOS_REGISTER_PIC24_USER_INTERRUPT

Definition at line 99 of file esos_pic24_irq.h.

◆ ESOS_USER_IRQ_LEVEL3

#define ESOS_USER_IRQ_LEVEL3

Third-highest priority user interrupt level on PIC24 Family

See also
ESOS_REGISTER_PIC24_USER_INTERRUPT

Definition at line 105 of file esos_pic24_irq.h.

◆ ESOS_USER_IRQ_LEVEL4

#define ESOS_USER_IRQ_LEVEL4

Lowest priority user interrupt level on PIC24 Family

See also
ESOS_REGISTER_PIC24_USER_INTERRUPT

Definition at line 111 of file esos_pic24_irq.h.