How do I set up interrupts on SHARC?
The header file, adi_int.h, provides prototypes of the SSL interrupt handling APIs and macros that define interrupt IDs. The file can be found in the CCES subdirectory “<install_path>/SHARC/include/services/int” and is included in C/C++ source as follows:
The following functions are used to install, enable and uninstall interrupts
ADI_INT_HANDLER_PTR pfHandler, void *pCBParam, bool bEnable);
The interrupt IDs macros are defined as the interrupt name prefixed with “INT_CID_”, for example, ADI_CID_GPTMR0I. For a list of the interrupt IDs that are defined for each platform, see the file <<install_path>/SHARC/include/interrupt.h.
Note that <signal.h> now only provides support for the signal-related functions and macros that are required by the C and C++ standards.
Examples using these functions can be found in the ADSP-21469 Board Support Package. See, for example, the “Core_Timer” example, which uses both high- and low-priority timer interrupts.
See the System Run-Time Documentation in the CrossCore Embedded Studio Help for more information on the software support for interrupts
Differences from VisualDSP++
VisualDSP++ supported a number of methods of configuring interrupts, each with their own limitations, which led to many user errors and problems. To simplify interrupt support, and to provide a more consistent approach to programming interrupts across Analog Devices’ DSPs, these methods have been removed. The APIs described above are the only supported way to configure interrupts.
i want to convert a sharc project using IRQ from VisualDSP to CCES
It looks like that ADSP-21469 Board Support Package isn't linked till now.Following http://download.analog.com/tools/SWExamples/all_examples.html
leads to http://www.analog.com/en/evaluation/21469-EZBRD/eb.html
which doesn't contain a link to the BSP.
Is there a link available right now?
The 21469 Board Support Package is not yet available. When it is, the link will be added to the Product Page for the EZ-Board that you have linked above. We expect this particular BSP to be available very soon.
If you have any issues converting your project that are not covered by the above FAQ, please start a new discussion in the CrossCore Embedded Studio Community.
[[Edited by CraigG: changed link to 'CrossCore Embedded Studio' community from 'SHARC Processors' community]]
Almost five monthes was gone but the 21469 Board Support Package is not yet available
The Board Support Package is (and has been for a while) available from the EZ-KIT Lite product page, here:
http://www.analog.com/en/evaluation/21469-ezlite/eb.html has the url to the Board Support Package.
But I tryed to find the url to the Board Support Package the next way from CCES:
http://www.analog.com/swexamples and it go to http://www.analog.com/en/evaluation/21469-EZBRD/eb.html where I couldn't find the url to the Board Support Package.
Thanks for pointing that out. I have raised it internally, so the swexamples page can be updated with the EZ-KIT Lite link, rather than the EZ-Board link.