Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add common usb_conf.h #125

Open
mrx23dot opened this issue Apr 14, 2023 · 1 comment
Open

Add common usb_conf.h #125

mrx23dot opened this issue Apr 14, 2023 · 1 comment

Comments

@mrx23dot
Copy link

mrx23dot commented Apr 14, 2023

It would be a lot easier for IDEs if every configuration would be located in one header file,
instead having to manually configure it in the IDE/and build chain and hunt for missing defines.

usb_conf.h

/* select target */
#define STM32F1
#define STM32F103x6
#define STM32F103xB
#define STM32F1xx
#define USBD_STM32F103

/* +whatever usb config */

Similarly to stm32f1xx_hal_conf.h

It should also be effectively included in every file that uses these macros. (possibly via usb.h)
Nice and self contained solution.

@xcvista
Copy link
Contributor

xcvista commented Apr 26, 2023

Currenly we are using -D flags on the compiler configuration for that purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants