Quality RTOS & Embedded Software

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




Loading

how to add an ISR in Rowley for LPC2368.

Posted by raedbenz on November 26, 2009
Hi,
sorry but i am a newbie to freertos.
i am using rowley with lpc268. i managed to run my hello world task (led flash).
now i would like to add an interrupt on UART0 receveir. how do u define interreupts in freertos ? (i know how to setup registers for UART0, but how to define isr routine and context switching, etc..)
any documentation for that?
thanks

RE: how to add an ISR in Rowley for LPC2368.

Posted by MEdwards on November 26, 2009
Rowley for ARM just uses the standard GCC ARM7 port. Look at the Interrupt Service Routines section of this page http://www.freertos.org/portlpc2106.html

I think it is a bit out of date though. The very latest versions of GCC can try and inline the C function call. To avoid this simply call the C function from asm instead. So in the example on the linked page, replace the C function call to vASwitchCompatibleISR_Handler(); with __asm volatile ( "bl vASwitchCompatibleISR_Handler" );


[ 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