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

Go to the source code of this file.

Macros

#define COUNTER_ALREDY_INITED   1
 
#define COUNTER_ADDDEV(ns, p)   HAL_ADDDEV(counter, ns, p)
 
#define COUNTER_GET_DEV(index)   HAL_GET_DEV(counter, index)
 
#define COUNTER_OPS(ns)
 
#define COUNTER_INIT_DEV(ns)
 
#define COUNTER_INIT(ns, index, mode)   struct counter *counter_init(uint32_t index, enum counter_mode mode)
 
#define COUNTER_DEINIT(ns, p)   int32_t counter_deinit(struct counter *p)
 
#define COUNTER_GET_VALUE(ns, p)   int64_t counter_getValue(struct counter *p)
 
#define COUNTER_RESET(ns, p)   int32_t counter_reset(struct counter *p)
 

Functions

int32_t counter_genericInit (struct counter *counter)
 
 HAL_DEFINE_GLOBAL_ARRAY (counter)
 

Macro Definition Documentation

◆ COUNTER_ADDDEV

#define COUNTER_ADDDEV (   ns,
 
)    HAL_ADDDEV(counter, ns, p)

◆ COUNTER_ALREDY_INITED

#define COUNTER_ALREDY_INITED   1

◆ COUNTER_DEINIT

#define COUNTER_DEINIT (   ns,
 
)    int32_t counter_deinit(struct counter *p)

◆ COUNTER_GET_DEV

#define COUNTER_GET_DEV (   index)    HAL_GET_DEV(counter, index)

◆ COUNTER_GET_VALUE

#define COUNTER_GET_VALUE (   ns,
 
)    int64_t counter_getValue(struct counter *p)

◆ COUNTER_INIT

#define COUNTER_INIT (   ns,
  index,
  mode 
)    struct counter *counter_init(uint32_t index, enum counter_mode mode)

◆ COUNTER_INIT_DEV

#define COUNTER_INIT_DEV (   ns)

◆ COUNTER_OPS

#define COUNTER_OPS (   ns)

◆ COUNTER_RESET

#define COUNTER_RESET (   ns,
 
)    int32_t counter_reset(struct counter *p)

Function Documentation

◆ counter_genericInit()

int32_t counter_genericInit ( struct counter *  counter)

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( counter  )