home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / battclock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  508 b   |  25 lines

  1. #ifndef _INLINE_BATTCLOCK_H
  2. #define _INLINE_BATTCLOCK_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef BATTCLOCK_BASE_NAME
  9. #define BATTCLOCK_BASE_NAME BattClockBase
  10. #endif
  11.  
  12. #define ReadBattClock() \
  13.     LP0(0xc, ULONG, ReadBattClock, \
  14.     , BATTCLOCK_BASE_NAME)
  15.  
  16. #define ResetBattClock() \
  17.     LP0NR(0x6, ResetBattClock, \
  18.     , BATTCLOCK_BASE_NAME)
  19.  
  20. #define WriteBattClock(time) \
  21.     LP1NR(0x12, WriteBattClock, unsigned long, time, d0, \
  22.     , BATTCLOCK_BASE_NAME)
  23.  
  24. #endif /* _INLINE_BATTCLOCK_H */
  25.