/*
 * Sunseeker Telemetry 2021
 *
* Last modified May 2021 by B. Bazuin
 *
 * Main CLK     :  MCLK  = XT2     = 20 MHz
 * Sub-Main CLK :  SMCLK = XT2/2   = 10  MHz
 * Aux CLK      :  ACLK  = XT1     = 32.768 kHz
 *
 */

#ifndef MAIN_H_
#define MAIN_H_

#include <msp430x54xa.h>

#include <stdio.h>


// Event timing
#define SMCLK_RATE		10000000	// Hz
#define ACLK_RATE		32768	// Hz
#define TICK_RATE		100		// Hz
#define CM_STATUS_COUNT			13			// Number of ticks per event: ~0.133 sec
#define TEXT_COMMS_COUNT	 100*15			// Number of ticks per event: 7 sec
#define CAN_COMMS_COUNT			50			// Number of ticks per event: 0.5 sec



#endif /* MAIN_H_ */
