Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS: How does hardware interrupt pre-empt logic works in SYS_BIOS

$
0
0

Tool/software:TI-RTOS

Hi there,

I am using OMAP-L138 SoC and in the DSP side on the core I am trying to use two interrupts .

SPI1 set to interrupt number 5 and UART0 set to interrupt number 7. I am not currently using any priorities for these. 

Below is the configuration info:

var hwi5Params = new Hwi.Params();
hwi5Params.instance.name = "hwi5";
hwi5Params.priority = -1;
hwi5Params.eventId = 38;
Program.global.hwi5 = Hwi.create(5, "&uart0ISR", hwi5Params);

var hwi7Params = new Hwi.Params();
hwi7Params.instance.name = "hwi7";
hwi7Params.eventId = 43;
hwi7Params.priority = -1;
hwi7Params.maskSetting = xdc.module("ti.sysbios.interfaces.IHwi").MaskingOption_SELF;
Program.global.hwi7 = Hwi.create(7, "&SPI1Isr", hwi7Params);

SPI1 ISR runs for around 1.2ms and the UART0 ISR runs of 200usec but the frequency of UART0 is higher hence I assigned interrupt number 5 for higher priority that the SPI1 interrupt. But for some reason SPI1 interrupt doesn't pre-empt when there is UART0 interrupt. Am I doing anything wrong here?? Thanks


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>