Changeset 27144f44 in rtems


Ignore:
Timestamp:
Oct 7, 2014, 10:17:38 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
237b3464
Parents:
461f9f48
git-author:
Joel Sherrill <joel.sherrill@…> (10/07/14 22:17:38)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:55)
Message:

arm/gba/clock/clockdrv.c: Fix warnings and clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gba/clock/clockdrv.c

    r461f9f48 r27144f44  
    2121#include <assert.h>
    2222
    23 
    2423void Clock_isr(void * arg);
     24void Clock_driver_support_initialize_hardware(void);
    2525
    2626#define Clock_driver_support_at_tick()
     
    8282void Clock_driver_support_initialize_hardware(void)
    8383{
    84   int tmreload = ((rtems_configuration_get_microseconds_per_tick()*1000)/__TimTickTime_ns);
     84  int tmreload;
    8585
    86   if (tmreload>0xFFFF) tmreload = 0xFFFF;
     86  tmreload = rtems_configuration_get_nanoseconds_per_tick() / __TimTickTime_ns;
     87
     88  if (tmreload>0xFFFF)
     89    tmreload = 0xFFFF;
    8790  GBA_REG_TM3CNT = (GBA_TMCNT_PS);
    8891  GBA_REG_TM3D   = (0x0000-tmreload);
Note: See TracChangeset for help on using the changeset viewer.