- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been adapting the Video IP Reference Design (an427) to teach myself the Altera tools. I've added run-time control to the scaler and rebuilt the SOPC system without trouble, but I'm not sure how to adapt the nios software to match the new system.
I've looked at system.h and found that the scaler base address etc have been added. I've added the "#include "Scaler.hpp"" line to the "main" program and I've had a guess at what the cpp will look like: Scaler* the_scaler = new Scaer(MY_ALT_VIP_SCL_BASE); the_scaler->start(); But I get the following errors: ../main.cpp:40: error: missing template arguments before '*' token ../main.cpp:40: error: `the_scaler' was not declared in this scope ../main.cpp:40: error: `Scaler' is not a type . Can anyone help ?- Tags:
- Include
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess Scaler is a template not just a class. Try
Scaler my_scaler(MY_ALT_VIP_SCL_BASE);
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