Tool/software: Linux
Sir,
Kindly share the timer driver for AM3359 processor which uses Linux OS.
regards
Mobin P K
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Mobin,
Which timer exactly you refer to? Let take for example timer4 (base addr 0x48044000), the kernel drivers are:
linux-4.14.40/arch/arm/mach-omap2/timer.c
linux-4.14.40/drivers/clocksource/timer-ti-dm.c
linux-4.14.40/drivers/pwm/pwm-omap-dmtimer.c
Regards,
Pavel
Sir,
I have found the dmtimer.c with in the path linux/arch/arm/plat-omap and is compiled default with OS.
I am developing the application in Eclipse IDE, Kindly share the User APIs for accessing the dmtimer for AM3359 Processor.
thanks
Mobin P K
Mobin,
Do you use AM335x TI PSDK? If yes, which version? I can not find DMTimerEnable() function in the latest PSDK v5.00
As this seems to be kernel level function, then my answer is: no, you can not call it directly from user space. You should create your own user space application, and map timer registers with mmap() function, thus you will be able to access timer registers (i.e. TCLR register).
Regards,
Pavel