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] [November 2009 Threads] 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" );
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|