# LPC2000 port - FIQ interrupt

**URL:** <https://forums.freertos.org/t/lpc2000-port-fiq-interrupt/5319>\
**Category:** Kernel\
**Created:** [April 18, 2008, 3:36pm UTC](https://forums.freertos.org/t/lpc2000-port-fiq-interrupt/5319 "2008-04-18T15:36:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 18, 2008, 3:36pm UTC](https://forums.freertos.org/t/lpc2000-port-fiq-interrupt/5319/1 "2008-04-18T15:36:47Z")

</div>

**[piero74](https://sourceforge.net/u/piero74/)** wrote on [Friday, April 18, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/ee1341e9/#3fd5):

Hi all.

I need to have a very critical interrupt.  
So, i decided to use FIQ.  
In port.c and port macro.h (for IAR compiler) i changed calls to enable\_interrupt and disable\_interrupt (with calls to other similar assembler functions, which doesn’t disable FIQ flag in cpsr).

I have some questions:

1. when fiq occurs, it can interrupts both application routines and RTOS critical routines. can be a problem??? (i don’t use rtos api inside fiq routine)  
2. for licensing: have i to provide my changes in port with our emebedded device? i’m thinking to add in our website two links, one for freertos download page for official version, and one for a zip file which will have modified files. Is it right?

Bye  
Piero  
&nbsp;

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [April 18, 2008, 5:09pm UTC](https://forums.freertos.org/t/lpc2000-port-fiq-interrupt/5319/2 "2008-04-18T17:09:35Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, April 18, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/ee1341e9/#3fd5/a547):

\> 1. when fiq occurs, it can interrupts both application routines and  
\> RTOS critical routines. can be a problem??? (i don’t use rtos api  
\> inside fiq routine)

No problem - so long as you don’t use the API from the FIQ (as you say).&nbsp; This is effectively implementing the configKERNEL\_INTERRUPT\_PRIORITY feature for the ARM7 -\> [http://www.freertos.org/a00110.html](http://www.freertos.org/a00110.html)

\>2. for licensing: have i to provide my changes in port with our emebedded  
\>device? i’m thinking to add in our website two links, one for freertos  
\>download page for official version,

That’s good.

\>and one for a zip file which will  
\>have modified files. Is it right?

This is quite a common change, which I already have on file should others want to use it, so in this case I don’t think it is necessary to have the .zip file as a download from your site.&nbsp; The code is already “in the community” - but you definitely do the right thing by asking.

Regards.
