Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
275 johboh 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-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 363 $
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
 
276 johboh 19
 
339 johboh 20
 
363 johboh 21
#define IO_TIMEOUT 200//700
275 johboh 22
#define TMR1_VAL 60536
277 johboh 23
// 0.05ms
24
// Fosc/4 = 10Mhz = 0,0000001
25
// 0.1ms = 500
275 johboh 26
 
347 johboh 27
#define DUTY_OFF_DELAY 15536
28
 
275 johboh 29
void blindsInit(void);
30
 
339 johboh 31
void blindsTurn(BYTE precent);
275 johboh 32
 
33
void blindsISR(void);
34
 
339 johboh 35
BYTE blindsGetPrecent(void);
36
 
275 johboh 37
#endif