Skip to content

Commit a05b663

Browse files
committed
Define SOC_LEDC_* constants in mruby too
1 parent 9972315 commit a05b663

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ledc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ mrb_mruby_esp32_ledc_gem_init(mrb_state* mrb)
187187
define_const(LEDC_CHANNEL_6);
188188
define_const(LEDC_CHANNEL_7);
189189
#endif
190+
define_const(SOC_LEDC_CHANNEL_NUM);
190191

191192
// All chips have 4 LEDC timers.
192193
define_const(LEDC_TIMER_MAX);
@@ -220,6 +221,7 @@ mrb_mruby_esp32_ledc_gem_init(mrb_state* mrb)
220221
define_const(LEDC_TIMER_19_BIT);
221222
define_const(LEDC_TIMER_20_BIT);
222223
#endif
224+
define_const(SOC_LEDC_TIMER_BIT_WIDTH);
223225
}
224226

225227
void

0 commit comments

Comments
 (0)