Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years ago.
Setting FFChan settings in ffconf.h from mbed configuration files
I'm currently porting a project from mBed 2 (classic) to mBed 5 (mbedOS).
We are running a threaded application I underwent a small amount of work in the project to get ffChaN using its reentrancy feature This basically involved writing some C function wrappers around Mutexes and changing some defines in the
ffconf.h header. The exact define is
We did this all inside the mbed library by directly changing these files and commiting them to a separate branch.
With the advent of configuration files in mBed, is there any way to set these defines at the
mbed_app.json level, or the library configuration? How does one go about finding what configuration settings are available at a library level?
3 years ago.
Mbed configuration files are explained here:
If you check
mbed-os\features\filesystem\littlefs you will find an example
mbed_lib.json file there. You could create your own like that in the
mbed-os\features\filesystem\fat to handle your own definitions. Another example of styling is shown here - where macros are simply defined in succession in a more compact format:
Ralph, Team Mbed