- Click on [arrow] besides Core in your project explorer
- Right Click on “Inc” folder and point your mouse at the “NEW” menu item.
- Select “header file” option
- A new Header file dialog box will appear
- Fill in the name of the header file in “Header file” with a dot h extension
- Click on finish
- Now open your main.c file and add your custom header file after USER CODE BEGIN Incudes
Leave a Reply