Header files required

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

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

 I note that creator generated code seems to include cyfitter.h, cytypes.h and devices.h

   

I think devices.h gives access within C files to the components on the schematics?

   

When I create my own C and H files, should I be including "devices.h" in the C file to access components and the "cytypes.h" to access the named registers in the header files?

   

Beside standard Ansi C header files for string processing etc, are these the main 2 cypress header files I need?

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are quite right with your assumptions. When you access components you need <device.h> and if not <cytypes.h> which is afaik included by the first one.

   

 

   

Bob

0 Likes