Hardware Abstraction Layer for FreeRTOS
counter.h File Reference
#include <FreeRTOS.h>
#include <stdint.h>
#include <stdbool.h>
#include <system.h>
#include <hal.h>
Include dependency graph for counter.h:

Go to the source code of this file.

Data Structures

struct  counter_generic
 

Enumerations

enum  counter_mode { COUNTER_FALLING, COUNTER_RISING, COUNTER_EITHER }
 

Functions

struct counter * counter_init (uint32_t index, enum counter_mode mode)
 
int32_t counter_deinit (struct counter *counter)
 
int64_t counter_getValue (struct counter *counter)
 
int32_t counter_reset (struct counter *counter)