Forum Discussion
Altera_Forum
Honored Contributor
16 years agoquestion about driver of user component
I got a problem unsolved about driver of user component. In my component's header file named "my_component.h", I have defined the macros for alt_sys_init() to automatically integrate my compon...
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