#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Go to the source code of this file.
|
#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) |
|
◆ PWM_ADDDEV
#define PWM_ADDDEV |
( |
|
ns, |
|
|
|
p |
|
) |
| HAL_ADDDEV(pwm, ns, p) |
◆ PWM_ALREDY_INITED
#define PWM_ALREDY_INITED 1 |
◆ PWM_DEINIT
#define PWM_DEINIT |
( |
|
ns, |
|
|
|
p |
|
) |
| int32_t pwm_deinit(struct pwm *p) |
◆ PWM_GET_DEV
◆ PWM_INIT
#define PWM_INIT |
( |
|
ns, |
|
|
|
index |
|
) |
| struct pwm *pwm_init(uint32_t index) |
◆ PWM_INIT_DEV
#define PWM_INIT_DEV |
( |
|
ns | ) |
|
◆ PWM_OPS
◆ 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) |
◆ HAL_DEFINE_GLOBAL_ARRAY()
HAL_DEFINE_GLOBAL_ARRAY |
( |
pwm |
| ) |
|
◆ pwm_generic_init()
int32_t pwm_generic_init |
( |
struct pwm * |
pwm | ) |
|