Altera_Forum
Honored Contributor
15 years agoProblem with integrating custom device driver
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 :)