AnsweredAssumed Answered

FreeRTOS interrupts and peripherals

Question asked by Dimitris Sideris on Oct 3, 2016
Latest reply on Oct 20, 2016 by soledad

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.