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

Go to the source code of this file.

Macros

#define PWM_ALREDY_INITED   1
 
#define PWM_ADDDEV(ns, p)   HAL_ADDDEV(pwm, ns, p)
 
#define PWM_GET_DEV(index)   HAL_GET_DEV(pwm, index)
 
#define PWM_OPS(ns)
 
#define PWM_INIT_DEV(ns)
 
#define PWM_INIT(ns, index)   struct pwm *pwm_init(uint32_t index)
 
#define PWM_DEINIT(ns, p)   int32_t pwm_deinit(struct pwm *p)
 
#define PWM_SET_PERIOD(ns, p, us)   int32_t pwm_setPeriod(struct pwm *p, uint64_t us)
 
#define PWM_SET_DUTY_CYCLE(ns, p, us)   int32_t pwm_setDutyCycle(struct pwm *p, uint64_t us)
 

Functions

int32_t pwm_generic_init (struct pwm *pwm)
 
 HAL_DEFINE_GLOBAL_ARRAY (pwm)
 

Macro Definition Documentation

◆ PWM_ADDDEV

#define PWM_ADDDEV (   ns,
 
)    HAL_ADDDEV(pwm, ns, p)

◆ PWM_ALREDY_INITED

#define PWM_ALREDY_INITED   1

◆ PWM_DEINIT

#define PWM_DEINIT (   ns,
 
)    int32_t pwm_deinit(struct pwm *p)

◆ PWM_GET_DEV

#define PWM_GET_DEV (   index)    HAL_GET_DEV(pwm, index)

◆ PWM_INIT

#define PWM_INIT (   ns,
  index 
)    struct pwm *pwm_init(uint32_t index)

◆ PWM_INIT_DEV

#define PWM_INIT_DEV (   ns)

◆ PWM_OPS

#define PWM_OPS (   ns)

◆ PWM_SET_DUTY_CYCLE

#define PWM_SET_DUTY_CYCLE (   ns,
  p,
  us 
)    int32_t pwm_setDutyCycle(struct pwm *p, uint64_t us)

◆ PWM_SET_PERIOD

#define PWM_SET_PERIOD (   ns,
  p,
  us 
)    int32_t pwm_setPeriod(struct pwm *p, uint64_t us)

Function Documentation

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( pwm  )

◆ pwm_generic_init()

int32_t pwm_generic_init ( struct pwm *  pwm)