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] [January 2008 Threads] sending to queue from vPreemptiveTickPosted by Wildcard on January 10, 2008 Hello again, is there a way to send something to a queue from vPreemptiveTick ISR? On Atmels AT91SAM7 the PIT Interrupt Vector is shared with other system components (e.g.:debug-uart) so i have to decide in this interrupt if it is an PIT or the DBGU-UART which caused the interrupt. I want to send something to a queue from ISR, if the UART caused this Interrupt. But for now the System crashes, if i try "sendtoqueue from isr". I think i have to deal with the "naked" attribute somehow, but could you please help me how to achieve this?
Thank you!
RE: sending to queue from vPreemptiveTickPosted by Dave on January 10, 2008 You can set configUSE_TICK_HOOK to 1 in FreeRTOSConfig.h. Then write a function
void vApplicationTickHook( void ) { /*QueueSendFromISR() can go here. */ }
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|