pwm_init

Initialize the PWM HAL instance and hardware.

int32_t pwm_init(
    struct pwm_descriptor *const descr,
    void *const hw,
    struct _pwm_hpl_interface *const func
)

Parameters

descr

Type: struct pwm_descriptor Struct *const

Pointer to the HAL PWM descriptor

hw

Type: void *const

The pointer to hardware instance

func

Type: struct _pwm_hpl_interface *const

The pointer to a set of functions pointers

Returns

Type: int32_t

Operation status.