#ifndef __CLOCK_ARCH_H__
#define __CLOCK_ARCH_H__

// Arduino 周波数 = 16MHz
// プリスケーラ = 1024
// Timer0オーバーフロー割り込み間隔 = 16.385 ms
// 1秒 = 61回割り込み (999.424 ms)

#include <stdint.h>

typedef uint16_t clock_time_t;
#define CLOCK_CONF_SECOND		(clock_time_t)61
								//(F_CPU / (1024*255)), this cannot be used as it gives overflows
								//Freqency divided prescaler and counter register size

#include "clock.h"

#endif /* __CLOCK_ARCH_H__ */