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

Go to the source code of this file.

Macros

#define EXAMPLE_ALREDY_INITED   1
 
#define example_lock(u, w, e)   HAL_LOCK(u, w, e)
 
#define example_unlock(u, e)   HAL_UNLOCK(u, e)
 
#define EXAMPLE_ADDDEV(ns, p)   HAL_ADDDEV(example, ns, p)
 
#define EXAMPLE_GET_DEV(index)   HAL_GET_DEV(example, index)
 
#define EXAMPLE_OPS(ns)
 
#define EXAMPLE_INIT_DEV(ns)   .gen.ops = &ns##_example_ops,
 
#define EXAMPLE_INIT(ns, index)   static struct example *ns##_example_init(uint32_t index)
 
#define EXAMPLE_DEINIT(ns, p)   static int32_t ns##_example_deinit(struct example *p)
 
#define EXAMPLE_FUNCNAME(ns, p, param)   static int32_t ns##_example_funcname(struct example *p, uint32_t param)
 

Functions

int32_t example_genericInit (struct example *example)
 
 HAL_DEFINE_GLOBAL_ARRAY (example)