Skip to content

Commit f11023c

Browse files
committed
Cleanup ledc driver
Removes an include for a file that does not exist. It was dropped during the PR introducing the ledc driver, but the include line was left, as well as several uses of macros defined in the file. Removes undefined macros, replacing them with their values, and documents the meaning of the values. Signed-off-by: Winford <winford@object.stream>
1 parent b257211 commit f11023c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/eavmlib/src/ledc.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
stop/3
4646
]).
4747

48-
-include("ledc.hrl").
49-
5048
-type duty_resolution() :: non_neg_integer().
5149
-type duty_resolution_cfg() :: {duty_resolution, duty_resolution()}.
5250
-type freq_hz() :: non_neg_integer().
5351
-type freq_hz_cfg() :: {freq_hz, freq_hz()}.
54-
-type speed_mode() :: ?LEDC_LOW_SPEED_MODE | ?LEDC_HIGH_SPEED_MODE.
52+
-type speed_mode() :: 0 | 1.
53+
%% Speed modes: use `0' for high speed, `1' for low speed.
54+
5555
-type speed_mode_cfg() :: {speed_mode, speed_mode()}.
5656
-type timer_num() :: 0..3.
5757
-type timer_num_cfg() :: {timer_num, timer_num()}.

0 commit comments

Comments
 (0)