FreeRTOS interrupts and peripherals

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS interrupts and peripherals

1,107 Views
dimitrissideris
Contributor III

Hi there,

I have some basic questions about FreeRTOS and how to handle interrupts from peripherals.

In LPCOpen examples there are some examples about i2c, ssp etc peripherals.

In order to create an application with FreeRTOS than can read and write to multiple periherals like i2c and ssp

1. Do i need different driver implementations of i2c and ssp?

2. Do i just port the code inside a task of FreeRTOS form and call xTaskCreate of this task? Or a different implementaion is needed?

3. When a peripheral (a sensor) raises an i2c interrupt and normally let's say I2C1_IRQHandler was triggered. With FreeRTOS how can i manage interrupts?

I am reading the FreeRTOS site and many tutorials but i need a basic guideline from scratch so that i can clear things up in my mind.

Thanx a lot.

0 Kudos
Reply
1 Reply

710 Views
soledad
NXP Employee
NXP Employee

Hello Dimitris,

You need to use the LPCOpen I2C etc peripherals drivers. Yes, you can port the code inside a task.

For interrupts, please check the "Special note for Cortex-M users" in the following FAQ page:  

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


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply