From 3858a784c702d75d207e62c6cdf4449eed41c789 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 27 Jul 2021 23:55:51 +0100 Subject: Align AW20216 driver (#13712) * Align AW20216 driver * Update drivers/awinic/aw20216.h Co-authored-by: Ryan * Review comments * formatting fixes * stop if start failed? * review comments Co-authored-by: Ryan --- drivers/awinic/aw20216.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/awinic/aw20216.h') diff --git a/drivers/awinic/aw20216.h b/drivers/awinic/aw20216.h index 9c6865cc82..c55d9605fc 100644 --- a/drivers/awinic/aw20216.h +++ b/drivers/awinic/aw20216.h @@ -18,6 +18,7 @@ #include #include +#include "gpio.h" typedef struct aw_led { uint8_t driver : 2; @@ -28,10 +29,10 @@ typedef struct aw_led { extern const aw_led g_aw_leds[DRIVER_LED_TOTAL]; -void AW20216_init(void); +void AW20216_init(pin_t cs_pin, pin_t en_pin); void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); void AW20216_set_color_all(uint8_t red, uint8_t green, uint8_t blue); -void AW20216_update_pwm_buffers(void); +void AW20216_update_pwm_buffers(pin_t cs_pin, uint8_t index); #define CS1_SW1 0x00 #define CS2_SW1 0x01 -- cgit v1.2.3