summaryrefslogtreecommitdiffstats
path: root/drivers/awinic/aw20216.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-07-27 23:55:51 +0100
committerGitHub <noreply@github.com>2021-07-27 23:55:51 +0100
commit3858a784c702d75d207e62c6cdf4449eed41c789 (patch)
tree17713862786ea5951f7fb15605df7e2082fdc34b /drivers/awinic/aw20216.h
parent56443fe3cf19768f34e065319d50164d4e99dd3c (diff)
Align AW20216 driver (#13712)
* Align AW20216 driver * Update drivers/awinic/aw20216.h Co-authored-by: Ryan <fauxpark@gmail.com> * Review comments * formatting fixes * stop if start failed? * review comments Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'drivers/awinic/aw20216.h')
-rw-r--r--drivers/awinic/aw20216.h5
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