/*********************************************************************
*
* Header file for BLINDS routines.
*
*********************************************************************
* FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/branches/buildsystem_v2/EmbeddedSoftware/PIC/canTemp/Include/blinds.h $
* Last changed: $LastChangedDate: 2007-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $
* By: $LastChangedBy: johboh $
* Revision: $Revision: 363 $
********************************************************************/
#ifndef BLINDS_H
#define BLINDS_H
#include <stackTasks.h>
#include <typedefs.h>
#include <delays.h>
#include <compiler.h>
#define IO_TIMEOUT 200//700
#define TMR1_VAL 60536
// 0.05ms
// Fosc/4 = 10Mhz = 0,0000001
// 0.1ms = 500
#define DUTY_OFF_DELAY 15536
void blindsInit(void);
void blindsTurn(BYTE precent);
void blindsISR(void);
BYTE blindsGetPrecent(void);
#endif