Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. /*********************************************************************
  2.  *
  3.  *   Header file for BLINDS routines.
  4.  *
  5.  *********************************************************************
  6.  * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Include/blinds.h $
  7.  * Last changed:    $LastChangedDate: 2007-01-30 12:34:06 +0100 (Tue, 30 Jan 2007) $
  8.  * By:              $LastChangedBy: johboh $
  9.  * Revision:        $Revision: 275 $
  10.  ********************************************************************/
  11. #ifndef BLINDS_H
  12. #define BLINDS_H
  13.  
  14. #include <stackTasks.h>
  15. #include <typedefs.h>
  16. #include <delays.h>
  17. #include <compiler.h>
  18.  
  19. #define TMR1_VAL 60536
  20.  
  21. // 0.5ms
  22. // Tosc/4 = 10Mhz = 0,0000001
  23. // .05ms = 5000
  24. // 65536-5000 =
  25.  
  26. void blindsInit(void);
  27.  
  28. void blindsClose(WORD steps);
  29. void blindsOpen(WORD steps);
  30.  
  31. void blindsStop(void);
  32.  
  33. void blindsISR(void);
  34.  
  35. #endif
  36.