34#include "periph_cpu.h"
50typedef void (*
freqm_cb_t)(uint32_t result,
bool overflow,
void *context);
Low-level GPIO peripheral driver interface definitions.
void freqm_frequency_get_async(freqm_t idx, freqm_cb_t freqm_cb, void *context, uint32_t period_us)
Read number of periods of measured clock and calculate its frequency.
int freqm_frequency_get(freqm_t idx, uint32_t *result, uint32_t period_us)
Read number of periods of measured clock and calculate its frequency.
void freqm_init(freqm_t idx)
Initialize the frequency meter.
uint_fast8_t freqm_t
Define default Frequency meter type identifier.
void(* freqm_cb_t)(uint32_t result, bool overflow, void *context)
Frequency meter callback function.
Mutex for thread synchronization.
Utility header providing time unit defines.