Forum Discussion
Altera_Forum
Honored Contributor
16 years ago1 - You're probably just using an example but it's probably a good idea to name the struct something other than "dev".
2 - The struct created will be passed to your MY_COMPONENT_INIT function. It would be a good idea to create a pointer to your struct within that init function that you can keep track of rather than rely on the global definition of the struct. Jake