#include <stdio.h>
#include <stdint.h>
#define MIN_RPM_HALO (2000)
#define MAX_RPM_HALO (6600)
#define TAB_TIMER_FREQUENCY ((int)500e6)
// #define TAB_TIMER_FREQUENCY (500000000)
#define NUM_TABS (24)
#define RPM_TO_TAB_PERIOD(rpm) ((uint32_t)((double)TAB_TIMER_FREQUENCY * 60 / NUM_TABS / (rpm)))
#define MIN_GOOD_PERIOD_IN_TAB_TIMER_CLOCKS_HALO RPM_TO_TAB_PERIOD(MAX_RPM_HALO)
#define MAX_GOOD_PERIOD_IN_TAB_TIMER_CLOCKS_HALO RPM_TO_TAB_PERIOD(MIN_RPM_HALO)
#define TIMEOUT_LOW_RPM_IN_TAB_TIMER_CLOCKS_HALO ((MAX_GOOD_PERIOD_IN_TAB_TIMER_CLOCKS_HALO * 5) / 4)
int main(void) {
// your code goes here
printf("MAX_GOOD_PERIOD_IN_TAB_TIMER_CLOCKS_HALO=%u\n", MAX_GOOD_PERIOD_IN_TAB_TIMER_CLOCKS_HALO
); printf("TIMEOUT_LOW_RPM_IN_TAB_TIMER_CLOCKS_HALO=%u\n", TIMEOUT_LOW_RPM_IN_TAB_TIMER_CLOCKS_HALO
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KCiNkZWZpbmUgTUlOX1JQTV9IQUxPICgyMDAwKQojZGVmaW5lIE1BWF9SUE1fSEFMTyAoNjYwMCkKI2RlZmluZSBUQUJfVElNRVJfRlJFUVVFTkNZICgoaW50KTUwMGU2KQovLyAjZGVmaW5lIFRBQl9USU1FUl9GUkVRVUVOQ1kgKDUwMDAwMDAwMCkKI2RlZmluZSBOVU1fVEFCUyAoMjQpCiNkZWZpbmUgUlBNX1RPX1RBQl9QRVJJT0QocnBtKSAoKHVpbnQzMl90KSgoZG91YmxlKVRBQl9USU1FUl9GUkVRVUVOQ1kgKiA2MCAvIE5VTV9UQUJTIC8gKHJwbSkpKQojZGVmaW5lIE1JTl9HT09EX1BFUkl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