Rev 347 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 347 | Rev 363 | ||
|---|---|---|---|
| 1 | /********************************************************************* |
1 | /********************************************************************* |
| 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-03- |
7 | * Last changed: $LastChangedDate: 2007-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $ |
| 8 | * By: $LastChangedBy: johboh $ |
8 | * By: $LastChangedBy: johboh $ |
| 9 | * Revision: $Revision: |
9 | * Revision: $Revision: 363 $ |
| 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 | 20 | ||
| 21 | #define IO_TIMEOUT 700 |
21 | #define IO_TIMEOUT 200//700 |
| 22 | #define TMR1_VAL 60536 |
22 | #define TMR1_VAL 60536 |
| 23 | // 0.05ms |
23 | // 0.05ms |
| 24 | // Fosc/4 = 10Mhz = 0,0000001 |
24 | // Fosc/4 = 10Mhz = 0,0000001 |
| 25 | // 0.1ms = 500 |
25 | // 0.1ms = 500 |
| 26 | 26 | ||
| 27 | #define DUTY_OFF_DELAY 15536 |
27 | #define DUTY_OFF_DELAY 15536 |
| 28 | 28 | ||
| 29 | void blindsInit(void); |
29 | void blindsInit(void); |
| 30 | 30 | ||
| 31 | void blindsTurn(BYTE precent); |
31 | void blindsTurn(BYTE precent); |
| 32 | 32 | ||
| 33 | void blindsISR(void); |
33 | void blindsISR(void); |
| 34 | 34 | ||
| 35 | BYTE blindsGetPrecent(void); |
35 | BYTE blindsGetPrecent(void); |
| 36 | 36 | ||
| 37 | #endif |
37 | #endif |
| 38 | 38 | ||