You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using TinyUSB with a custom embedded stack which implements its own printf and associated functions.
TinyUSB includes stdio.h in src/common/tusb_common.h. This results in multiple declarations of sprintf(), which results in compile time errors.
It is unclear to me which parts, if any, of stdio.h are used by tinyusb. With the basic setup of tinyUSB I have in place, commenting out the include seems to cause no apparent breakage at compile time (though this is not tested in any meaningful way yet).
Describe the solution you'd like
What I would like to have is a way to disable the inclusion of stdio.h by tinyusb by changing something in the configuration. If tinyusb does use something from stdio.h, then by setting this configuration, I would be accepting that
those features (explicitly listed somewhere) are no longer available to me, or
i would have to provide these necessary components from stdio.h (also listed somewhere) to get those features back
I am commenting out this inclusion for the moment, though I would like to avoid doing this in favor of being able to use vanilla tinyUSB, appropriately configured through its configuration files.
I have checked existing issues, dicussion and documentation
I confirm I have checked existing issues, dicussion and documentation.
The text was updated successfully, but these errors were encountered:
Related area
common includes
Hardware specification
hardware independent
Is your feature request related to a problem?
I'm using TinyUSB with a custom embedded stack which implements its own printf and associated functions.
TinyUSB includes stdio.h in src/common/tusb_common.h. This results in multiple declarations of sprintf(), which results in compile time errors.
It is unclear to me which parts, if any, of stdio.h are used by tinyusb. With the basic setup of tinyUSB I have in place, commenting out the include seems to cause no apparent breakage at compile time (though this is not tested in any meaningful way yet).
Describe the solution you'd like
What I would like to have is a way to disable the inclusion of stdio.h by tinyusb by changing something in the configuration. If tinyusb does use something from stdio.h, then by setting this configuration, I would be accepting that
I am commenting out this inclusion for the moment, though I would like to avoid doing this in favor of being able to use vanilla tinyUSB, appropriately configured through its configuration files.
I have checked existing issues, dicussion and documentation
The text was updated successfully, but these errors were encountered: