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.

Clock configuration for am335x Timer module

I want to configure the timer2 and UART module in am335x .how to handle power and clock configuration for

these modules. In am335x starterware they given some API for enable the clock and power.

for example :

                  For enabling the clock for timer3  they given the API   DMTimer3ModuleClkConfig();

May i know the exact code (contents) for this API. whether is it possible to replace this API with my own code.

i gone through the Power management in am335x TRM. if i get the sample code for the clock configuration

of one module, i may use these things to the other modules also ...

Thanks .

Shan.S

  • Hi Shanmugam,

     You can do the clock configuration for timer2 module by using the API DMTimer2ModuleClkConfig()

    For the UART module UART0ModuleClkConfig() API can be used.

    These APIs are defined in platform folder in the starterware package

    Ex: platform/evmAM335x/uart.c gives the APIs for configuring the clock, Pinmux of UART module for the EVMAM335x board.

    You can use your own code in place of these APIs to do the necessary configurations.

    Hope this clarifies.

    Regards,

    Anant Pai