AnsweredAssumed Answered

The example of General Purpose Timers  can not compile

Question asked by zcyhansen on May 2, 2013
Latest reply on May 7, 2013 by Aaronwu

as I was  trying to compile  the simple example  on this

https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gptimers

 

there comes the log:

make all

make -C  /home/oscar/uClinux-dist-2008R1.5-RC3/linux-2.6.x M=/home/oscar/workspace/pwm-drive  modules 

make[1]: Entering directory `/home/oscar/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

  CC [M]  /home/oscar/workspace/pwm-drive/drive.o

/home/oscar/workspace/pwm-drive/drive.c: In function ‘gptimer_example_init’:

/home/oscar/workspace/pwm-drive/drive.c:63: error: ‘IRQ_TIMER0’ undeclared (first use in this function)

make[1]: Leaving directory `/home/oscar/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

/home/oscar/workspace/pwm-drive/drive.c:63: error: (Each undeclared identifier is reported only once

/home/oscar/workspace/pwm-drive/drive.c:63: error: for each function it appears in.)

/home/oscar/workspace/pwm-drive/drive.c:81: error: ‘TIMER_IRQ_WID_DLY’ undeclared (first use in this function)

/home/oscar/workspace/pwm-drive/drive.c:53: warning: unused variable ‘revid’

/home/oscar/workspace/pwm-drive/drive.c: In function ‘gptimer_example_exit’:

/home/oscar/workspace/pwm-drive/drive.c:102: error: ‘IRQ_TIMER0’ undeclared (first use in this function)

make[2]: *** [/home/oscar/workspace/pwm-drive/drive.o] Error 1

make[1]: *** [_module_/home/oscar/workspace/pwm-drive] Error 2

make: *** [all] Error 2

 

I  think  some  .h   file is need!! but I  do not know which!! 

help!   thanks

Outcomes