Skip to content

Commit 67b28fe

Browse files
committed
feat(LEDC): Adjusting function names to more suitable
1 parent 21d9042 commit 67b28fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: cores/esp32/esp32-hal-ledc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ static bool fade_initialized = false;
4949

5050
ledc_clk_cfg_t clock_source = LEDC_DEFAULT_CLK;
5151

52-
ledc_clk_cfg_t ledcReadClockSource(void) {
52+
ledc_clk_cfg_t ledcGetClockSource(void) {
5353
return clock_source;
5454
}
5555

56-
bool ledcWriteClockSource(ledc_clk_cfg_t source) {
56+
bool ledcSetClockSource(ledc_clk_cfg_t source) {
5757
if (ledc_handle.used_channels) {
5858
log_e("Cannot change LEDC clock source! LEDC channels in use.");
5959
return false;

Diff for: cores/esp32/esp32-hal-ledc.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ typedef struct {
5959
} ledc_channel_handle_t;
6060

6161
/**
62-
* @brief Read the LEDC clock source.
62+
* @brief Get the LEDC clock source.
6363
*
6464
* @return LEDC clock source.
6565
*/
66-
ledc_clk_cfg_t ledcReadClockSource(void);
66+
ledc_clk_cfg_t ledcGetClockSource(void);
6767

6868
/**
6969
* @brief Set the LEDC clock source.
7070
*
7171
* @return true if LEDC clock source was successfully set, false otherwise.
7272
*/
73-
bool ledcWriteClockSource(ledc_clk_cfg_t source);
73+
bool ledcSetClockSource(ledc_clk_cfg_t source);
7474

7575
/**
7676
* @brief Attach a pin to the LEDC driver, with a given frequency and resolution.

0 commit comments

Comments
 (0)