Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f125b2d0
Commit
f125b2d0
authored
Feb 07, 2022
by
Felix Penzlin
Committed by
Johny Mattsson
May 18, 2023
Browse files
configure ledc to auto select clock
parent
4523bbb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/ledc.c
View file @
f125b2d0
...
@@ -30,6 +30,8 @@ static int lledc_new_channel( lua_State *L )
...
@@ -30,6 +30,8 @@ static int lledc_new_channel( lua_State *L )
ledc_timer
.
timer_num
=
opt_checkint_range
(
L
,
"timer"
,
-
1
,
0
,
LEDC_TIMER_MAX
-
1
);
ledc_timer
.
timer_num
=
opt_checkint_range
(
L
,
"timer"
,
-
1
,
0
,
LEDC_TIMER_MAX
-
1
);
ledc_timer
.
clk_cfg
=
LEDC_AUTO_CLK
;
/* Setup channel */
/* Setup channel */
ledc_channel_config_t
channel_config
=
{
ledc_channel_config_t
channel_config
=
{
.
speed_mode
=
ledc_timer
.
speed_mode
,
.
speed_mode
=
ledc_timer
.
speed_mode
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment