/* * gpt1_timer.h * * Created on: Sep 20, 2020 * Author: KE9H * * Create and manage GPT1 timer * free running 32 bit GPT timer * input = 24 MHz / 24 = 1.0 MHz * rollover: ~ 4295 seconds = ~ 71 minutes * resolution: 1 count = 1.000 micro seconds * * 1 second = 1,000,000 counts * 0.1 second = 100,000 * 0.01 seccond = 10,000 * 1 millisecond = 1,000 */ #ifndef _GPT1_TIMER_H_ #define _GPT1_TIMER_H_ #include "fsl_common.h" void gpt1_init(void); uint32_t us_count(void); #endif /* GPT1_TIMER_H_ */