/****************************************************************************/
/* Copyright 2004 MBARI.                                                    */
/* Monterey Bay Aquarium Research Institute Proprietary Information.        */
/* All rights reserved.                                                     */
/****************************************************************************/
#ifndef FREQ_GEN_H
#define FREQ_GEN_H

#define FREQ_GEN_VERSION 0
#define FREQ_GEN_SUB_VERSION 90

/*
    The ticks per second is based on an 8-bit counter over flowing that
    is driven by a 4 Mhz ocsillator prescaled by 4 and postscaled by 64.

    TICKS_PER_SEC = (OSC_CLK) / (PRESCALE) / (POSTSCALE) / (8_BIT_OVERFLOW)
                  = 3580000   /     4      /      64     /      256
                  = 54.62646484375
    TICK_REMIANDER  = 0.62646484375 * 16384
*/
#define TICKS_PER_SEC           55
#define FREQ_DURATION           TICKS_PER_SEC
#define TICK_REMIANDER          10264

#define PORTC_CLEAR_ALL         0b00000000

#endif
