Project

General

Profile

Revision 2

utilis done

View differences:

timer.c
16 16
  uint32_t tudo;
17 17
  uint8_t msb,lsb;
18 18
  tudo=(TIMER_FREQ/freq);
19
  msb=(tudo&0xFF00)>>8;
20
  lsb=tudo&0xFF;
19
  util_get_MSB(tudo,&msb);
20
  util_get_LSB(tudo,&lsb);
21
  
21 22
  //printf("%x\n%x\n%x\n%d\n",tudo,msb,lsb,timer);
22 23

  
23 24

  
......
149 150
  if(field==tsf_base ) //BCD
150 151
  {
151 152
    //printf("%d\n",tsf_base);
152
    if((st&0x1)==1)
153
    if((st&BIT(0))==1)
153 154
    val.bcd=true;
154 155

  
155 156
    else val.bcd=false;

Also available in: Unified diff