Subversion Repositories HomeAutomation

Rev

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

Rev 282 Rev 339
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-02-03 16:58:13 +0100 (Sat, 03 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-02-25 20:51:08 +0100 (Sun, 25 Feb 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 282 $
9
 * Revision:        $Revision: 339 $
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
 
19
 
-
 
20
#define ANGLE_MIN = -50
-
 
21
#define ANGLE_MAX = 60
-
 
22
 
-
 
23
 
-
 
24
#define IO_TIMEOUT 700
20
#define TMR1_VAL 60536
25
#define TMR1_VAL 60536
21
// 0.05ms
26
// 0.05ms
22
// Fosc/4 = 10Mhz = 0,0000001
27
// Fosc/4 = 10Mhz = 0,0000001
23
// 0.1ms = 500
28
// 0.1ms = 500
24
 
29
 
25
void blindsInit(void);
30
void blindsInit(void);
26
 
31
 
27
void blindsTurn(signed char angle);
32
void blindsTurn(BYTE precent);
28
 
33
 
29
void blindsISR(void);
34
void blindsISR(void);
-
 
35
 
-
 
36
BYTE blindsGetPrecent(void);
30
 
37
 
31
#endif
38
#endif