Interrupts under uCos-III

I'm trying to run an application under uCos-III, that had worked fine standalone (no uCos-III).  I suspect it is something about installing and configuration interrupts.  For the standalone application, I had defined my interrupt routine as:

EX_REENTRANT_HANDLER( irq_adc )
{

and installed it as:

register_handler( ik_ivg12, irq_adc );

What is the equivalent, or appropriate method for the interrupt declaration and installation, under uCos-III?

Regards,

Robert

  • 0
    •  Analog Employees 
    on Apr 29, 2019 9:54 AM
  • +1
    •  Analog Employees 
    on May 9, 2019 1:35 PM

    Hi Robert,

    CCES provides a coherent interrupt management mechanism, which allows the same interface to be used in RTOS and non-RTOS applications. This means that interrupt service routines in µC/OS-III applications must be written in C and installed and enabled via the adi_int interface.

    You have to use adi_int_InstallHandler API to install an interrupt handler for a given processor interrupt. It is a valid API for system interrupts, core interrupts, NMI, and hardware exceptions.

    For more information about Interrupt Handler, please refer the below CCES path for installing the interrupt.

    CCES help>contents>CrossCore Embedded Studio 2.8.3 > System Runtime Documentation > Interrupt Support.
    CCES help>contents>CrossCore Embedded Studio 2.8.3 > System Run-Time Documentation > Interrupt Support > Installing an Interrupt Handler.
    CCES help>contents>CrossCore® Embedded Studio 2.8.3 > System Run-Time Documentation > Interrupt Support > Interrupt Handler Header File and Functions > adi_int_InstallHandler

    Also, please refer the below FAQ: How do I set up interrupts on SHARC?
    ez.analog.com/.../DOC-2422

    Regards,
    Santha kumari.K