Skip to content

Commit a7dbecd

Browse files
committed
Merge pull request #1511 from UncleGrumpy/fixup_ledc
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. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents a73c268 + f11023c commit a7dbecd

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)