#ifndef ION_DEVICE_N0100_CONFIG_TIMING_H
#define ION_DEVICE_N0100_CONFIG_TIMING_H

#include <regs/regs.h>

namespace Ion {
namespace Device {
namespace Timing {
namespace Config {

#warning N100-calibration
//TODO: calibrate LoopsPerMillisecond now that we decrease AHB clock while msleeping
constexpr static int LoopsPerMillisecond = 8852;
constexpr static int LoopsPerMicrosecond = 9;
// CPU clock is 96 MHz, and systick clock source is divided by 8
// To get 1 ms systick overflow we need to reset it to
// 96 000 000 (Hz) / 8 / 1 000 (ms/s)
constexpr static int SysTickPerMillisecond = 12000;


}
}
}
}

#endif
