Subversion Repositories HomeAutomation

Rev

Rev 275 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

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