mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
fix: fix small typo in pwm
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/419
This commit is contained in:

committed by
Wu Jian Gang

parent
fc6c39e51c
commit
7f14c1ea4d
@ -28,14 +28,14 @@ extern "C" {
|
||||
* e.g. For 1KHz PWM, period is 1000 us. Do not set the period below 20us.
|
||||
* @param duties duty cycle of each channels.
|
||||
* @param pwm_channel_num PWM channel number, maximum is 8
|
||||
* @param pin_mum GPIO number of PWM channel
|
||||
* @param pin_num GPIO number of PWM channel
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK Success
|
||||
* - ESP_ERR_INVALID_ARG Parameter error
|
||||
* - ESP_FAIL Init error
|
||||
*/
|
||||
esp_err_t pwm_init(uint32_t period, uint32_t *duties, uint32_t pwm_channel_num, const uint32_t *pin_mum);
|
||||
esp_err_t pwm_init(uint32_t period, uint32_t *duties, uint32_t pwm_channel_num, const uint32_t *pin_num);
|
||||
|
||||
/**
|
||||
* @brief PWM function uninstall
|
||||
@ -224,4 +224,4 @@ esp_err_t pwm_clear_channel_invert(uint16_t channel_mask);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user