diff options
Diffstat (limited to 'drivers/awinic/aw20216.h')
-rw-r--r-- | drivers/awinic/aw20216.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdint.h> #include <stdbool.h> +#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 |