I have a .lib directory where I store libaries that are used almost on every project, something as of just an extension for arduino.h. I use the platformio.ini to add them to the intellisense like so
globallib_dir = ../.lib
This works fine. But for example I have a wdt_reset() function used in a EEPROM managing class for when its saving larger amounts of data taking over the wdt limit to be saved. Problem is when I include the
It isnt recognized by the intellisense, most probably due to it being outside of the project directory, allthough its set as a globallib_dir. I have looked more into the dirs on the documentation but cant seem to figure out how i can redirect the #include to the package directory.
Or better yet have the #include <avr/wdt.h> from main.cpp take effect in the whole compiling scope. I am trying to make differences with #ifdef AVR_WDT_H to some files. If the wdt isnt used or if its used, so it doesnt need further changes for compilations with or without it.
Thanks in advance for any and all help!