Quality RTOS & Embedded Software

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




Loading

Quick question from newbie

Posted by ulmus on October 8, 2011
I am studying freertos to use in my project with PIC32MX.
I have newbie question:
how to do that after interupt i want run any task i want?
I have an interrupt from a hardware and i want just right after that interrupt to run specified task.
I know i can do that with semaphore, mutex, queue, but... it has to wait to timer tick and i want that task to run just after ISR routine has ended its job.
Is it possible to run specified task after ISR?

RE: Quick question from newbie

Posted by Richard on October 8, 2011
Read the "Configuration and Usage" section on the following page, in particular, the "Interrupt service routines" sub section. Note the use of the portEND_SWITCHING_ISR() macro. There are also examples in the PIC32 demo of the main FreeRTOS download and in the PIC32 edition of the FreeRTOS tutorial book.

http://www.freertos.org/port_PIC32_MIPS_MK4.html

Regards.

RE: Quick question from newbie

Posted by ulmus on October 8, 2011
Thanx for answer.
I just have written interrupt implementation of i2c and i have touchscreen controller interrupt driven. i must communicate with chip with interrupt driven state machine using i2c which is interrupt driven too:) :) it would be easier if interrupt could be interrupted:) but thanx, after interrupt from chip i can give control to common task in not interrupt state that can be interrupted:):)

RE: Quick question from newbie

Posted by MEdwards on October 8, 2011
The PIC32 FreeRTOS port has full interrupt nesting support. Interrupts can interrupt other interrupts.

RE: Quick question from newbie

Posted by ulmus on October 8, 2011
Thanx, now i know about assembly wrapper :)


[ 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