FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [February 2007 Threads] detection of int or task-contextPosted by Joe on February 3, 2007 Hi @all,
does anyone know how to detect whether the actual context is interrupt oder task-context ?
I want to implement an RTOS-wrapper and only want to have one function for semsignal and want to detect in this function if the actual context is interrupt or task-context to call the appropriate function !
regards Joe
RE: detection of int or task-contextPosted by Nobody/Anonymous on February 3, 2007 that would depend on which port you are using the easiest way would be to increment a var on entry to interrupt and decrement it again on exit. When the var is zero the context is task
RE: detection of int or task-contextPosted by Joe on February 3, 2007 I am using an arm7tdmsi Lpc2290 from nxp
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|