TucsonDon
Member
Code:
//RTCC free RAM addresses for pump start-stop timers
#define PumpTime0 0x15
#define PumpTime1 0x1B
#define PumpTime2 0x21
#define PumpTime3 0x27
#define PumpTime4 0x2D
#define PumpTime5 0x33
#define PumpTime6 0x39
#define PumpTime7 0x3F
typedef unsigned char bool;
union
{
struct
{
bool pumptimer0:1; /*using the bits to flag if */
bool pumptimer1:1; /*a run timer is in use*/
bool pumptimer2:1;
bool pumptimer3:1;
bool pumptimer4:1;
bool pumptimer5:1;
bool pumptimer6:1;
bool pumptimer7:1;
};
}pmptmr; //pump timer status
Last edited: