- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hai,
I am trying to create a custom component and access it in Qsys.Can anyone please tell me how to create the HAL driver files (BSP Project )like .c,.h,_sw.tcl for the custom module? I have gone through the Altera's documents but i am not able to understand further in that.Can anyone please help me in creating this? Please reply. Regards manjurglLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The easiest is to create your own .h and .c files for your custom component and include it in your project folder. In those files include system.h so that you can pull your component parameters (address, interrupt id, etc.). Also include io.h so that you can use the IORD and IOWR functions. That way you can write/read directly to your component's registers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all...
What are the things to be mentioned in the .h file...I read that _INSTANCE AND _INIT need to be mentioned in .h file. How to define this and the struct?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page