Use calibrated frequency
Use true-c code style