Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12686 Discussions

Problem with integrating custom device driver

Altera_Forum
Honored Contributor II
1,030 Views

Hi All, 

 

I'm trying to integrate my device driver in HAL. I generate _hw.tcl, wrote _sw.tcl and class.ptf. BSP Editor added all files .h and .c and in the Driver tab I can see my driver name and version. When I'm trying to build whole project in Eclipse in file alt_sys_init.c in line: MY_DRIVER_INIT ( MY_DRIVER,my_driver); I got errors:  

'my_driver' undeclared (first use in this function) 

'MY_DRIVER' undeclared (first use in this function) 

and warnings: 

data definition has no type or storage class 

implicit declaration of function 'MY_DRIVER_INIT' 

type defaults to 'int' in declaration of 'MY_DRIVER_INSTANCE' 

 

class.ptf: 

CLASS my_driver 

MODULE_DEFAULTS  

class = "my_driver"; 

class_version = "2.0"; 

}  

 

Please help :)
0 Kudos
0 Replies
Reply