How is GPIO.H generated and where is it located

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I am using GPIO macros in my project. The macros are defined in GPIO.H.

I manually placed a copy of the GPIO.H file into my project from C:\DAVE-3.1\Examples\EasyStart\XMC4000\XMC4500\144Pin

However I need to switch between the 144 pin and 100 pin xmc4500 but the GPIO.H files for each device are different.

So I would like to omit the GPIO.H file from my project and let DAVE locate the correct file depending on the MCU selected.

Doing things this way also means I always get the latest version of GPIO.H when I build.

Is there a way to do this ?

Any help would be greatly appreciated.

Aaron
0 Likes
2 Replies
Not applicable
Hi Aaron,

I don't think DAVE3 would automatically added the GPIO.h into your project.
This is because if you are building your project in DAVE CE project, by default you should use IO004 apps for controlling GPIO.
The GPIO.h is not available in DAVE3 include folder as well, it is only provided in the EasyStart examples.

rgds,
Rou
0 Likes
Not applicable
Thankyou very much for your reply Rou. I will change my project to use the IO004 App.

Best regards
Aaron
0 Likes