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 9c6865cc8..c55d9605f 100644 --- a/drivers/awinic/aw20216.h +++ b/drivers/awinic/aw20216.h | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | #include <stdint.h> | 19 | #include <stdint.h> |
| 20 | #include <stdbool.h> | 20 | #include <stdbool.h> |
| 21 | #include "gpio.h" | ||
| 21 | 22 | ||
| 22 | typedef struct aw_led { | 23 | typedef struct aw_led { |
| 23 | uint8_t driver : 2; | 24 | uint8_t driver : 2; |
| @@ -28,10 +29,10 @@ typedef struct aw_led { | |||
| 28 | 29 | ||
| 29 | extern const aw_led g_aw_leds[DRIVER_LED_TOTAL]; | 30 | extern const aw_led g_aw_leds[DRIVER_LED_TOTAL]; |
| 30 | 31 | ||
| 31 | void AW20216_init(void); | 32 | void AW20216_init(pin_t cs_pin, pin_t en_pin); |
| 32 | void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); | 33 | void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); |
| 33 | void AW20216_set_color_all(uint8_t red, uint8_t green, uint8_t blue); | 34 | void AW20216_set_color_all(uint8_t red, uint8_t green, uint8_t blue); |
| 34 | void AW20216_update_pwm_buffers(void); | 35 | void AW20216_update_pwm_buffers(pin_t cs_pin, uint8_t index); |
| 35 | 36 | ||
| 36 | #define CS1_SW1 0x00 | 37 | #define CS1_SW1 0x00 |
| 37 | #define CS2_SW1 0x01 | 38 | #define CS2_SW1 0x01 |
