Skip to content

Commit e620514

Browse files
barnas-michalCommit Bot
authored andcommitted
zephyr: change config that enables LED PWM in CMakeLists
This commit fixes the misleading comment in lazor led implementation and changes the config option that adds the led_pwm.c to compilation. BRANCH=main BUG=b:222684744 TEST=zmake testall Change-Id: Ied2ae753b2a2e32243d07697b8fb05d4a06d1f53 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3528407 Reviewed-by: Aaron Massey <aaronmassey@google.com>
1 parent 66c4507 commit e620514

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/projects/trogdor/lazor/src/led.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static void board_led_set_color(void)
330330
led_set_color(color);
331331
}
332332

333-
/* Called by hook task every TICK */
333+
/* Called by hook task every second */
334334
static void led_tick(void)
335335
{
336336
if (led_auto_control_is_enabled(EC_LED_ID_BATTERY_LED))

zephyr/shim/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_MOTIONSENSE
4141
motionsense_sensors.c)
4242
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_PANIC panic.c)
4343
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_PWM pwm.c)
44-
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_LED_COMMON pwm_led.c)
44+
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_LED_PWM pwm_led.c)
4545
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_RTC rtc.c)
4646
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_SWITCHCAP_GPIO
4747
switchcap_gpio.c)

0 commit comments

Comments
 (0)