Headers keep getting included in the project if used FreeRTOS template on AtmelStudio

mehrad1983 wrote on Monday, March 20, 2017:

I have used the FreeRTOS demo called FREERTOS_OLED1_XPRO_EXAMPLE from ASF to start away with FreeRTOS on SAMD21.

My project has advanced and moved away from the demo it used to be and I never needed the OLED part of the project but the main structure of FreeRTOS. Now, anytime I add a driver from ASF or remove one, two include files below keep getting added back to asf.h file. And considering that I have removed these two headers from the project long time ago, project goes to halt and doesn’t compile.

// From module: User I/O driver for FreeRTOS demo
#include <cdc.h>
#include <oled1.h

Removing these two lines manually is a super easy thing to do but I am wondering where these two includes are coming from and getting generated? Is there a source somewhere which could be tweeked to stop the generation of these two lines. In the future I might want to use this on my favour and add include files to such places.

rtel wrote on Monday, March 20, 2017:

Unfortunately we are not able to support other people’s software - in
this case the Atmel tools - besides which I have no idea how Atmel have
integrated their ASF code into their tool so wouldn’t know where to
start. I recommend you ask Atmel directly.

mehrad1983 wrote on Monday, March 20, 2017:

Fair enough. Thanks for the promp responce though.