Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Software Interrupt within a Task

Posted by despr on May 18, 2016

Hello, I've been working on a project with SAMD21 and FreeRTOS.

I want to add in my code software interrupts. The tasks I have created are blocked and unblocked with Notifications. If the software interrupt I want to create, occur in the middle of a Task, how can I handle it? Can I use the fromISR functions since it's about a software interrupt and not a hardware one?

How can I make sure that the code execution will return to the same point after the software interrupt?

Thank you in advance. Regards


Software Interrupt within a Task

Posted by rtel on May 18, 2016

When you say software interrupt, do you mean an SVC call, or an interrupt generated by setting a bit in a SetPending register?

If you are setting a pending bit then the resultant interrupt will occur, and should be handled, in exactly the same way as a hardware generated interrupt.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS