Quality RTOS & Embedded Software

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


sending to queue from vPreemptiveTick

Posted 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 vPreemptiveTick

Posted 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. */

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

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

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

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

Xilinx Microblaze and Zynq partner