コード例 #1
0
ファイル: ATimerDefs.cpp プロジェクト: BitElectronics/SumoBot
uint32_t GetFrequency_16(const int16_t timerOffset)
{
	return (int32_t)(F_CPU/(2 * (int32_t)GetTop_16(timerOffset) * GetPrescaler_16(timerOffset)));
}
コード例 #2
0
ファイル: BTimerDefs.cpp プロジェクト: nsayer/hydra
uint32_t GetFrequency_16()
{
	return (int32_t)(F_CPU/(2 * (int32_t)GetTop_16() * GetPrescaler_16()));
}