Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 241f12bf in mainline


Ignore:
Timestamp:
2013-02-13T23:05:07Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
30c8723
Parents:
ddb3051
Message:

Enable the prescaler with divisor == 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/am335x/timer.c

    rddb3051 r241f12bf  
    116116        /* Disable compare mode */
    117117        tclr &= ~AM335x_TIMER_TCLR_CE_FLAG;
    118         /* Disable the prescaler */
    119         tclr &= ~AM335x_TIMER_TCLR_PRE_FLAG;
     118        /* Enable the prescaler, divisor = 2 */
     119        tclr |= AM335x_TIMER_TCLR_PRE_FLAG;
     120        tclr &= ~(AM335x_TIMER_TCLR_PTV_MASK << AM335x_TIMER_TCLR_PTV_SHIFT);
    120121        /* Enable auto-reload mode */
    121122        tclr |= AM335x_TIMER_TCLR_AR_FLAG;
Note: See TracChangeset for help on using the changeset viewer.