Subversion Repositories HomeAutomation

Rev

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

Rev 276 Rev 277
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:53:25 +0100 (Tue, 30 Jan 2007) $
7
 * Last changed:    $LastChangedDate: 2007-01-31 14:04:02 +0100 (Wed, 31 Jan 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 276 $
9
 * Revision:        $Revision: 277 $
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
 
-
 
20
 
-
 
21
typedef enum {OPEN=2,MIDDLE=3,CLOSE=4} BLINDS_DIR;
-
 
22
 
19
 
23
#define TMR1_VAL 60536
20
#define TMR1_VAL 60536
24
// 0.5ms
21
// 0.05ms
25
// Tosc/4 = 10Mhz = 0,0000001
22
// Fosc/4 = 10Mhz = 0,0000001
26
// .05ms = 5000
23
// 0.1ms = 500
27
// 65536-5000 = 
-
 
28
 
24
 
29
void blindsInit(void);
25
void blindsInit(void);
30
 
26
 
31
void blindsTurn(BLINDS_DIR dir,WORD steps);
27
void blindsTurn(signed int angle);
32
void blindsStop(void);
-
 
33
 
28
 
34
void blindsISR(void);
29
void blindsISR(void);
35
 
30
 
36
#endif
31
#endif