/* * led_driver.h * */ #ifndef LED_DRIVER_H_ #define LED_DRIVER_H_ #include "mcc_generated_files/mcc.h" #define ENABLE_LED 1u #if ENABLE_LED == 1u /* * ======================================================================= * LED Driver constants * ======================================================================= */ #define LED_DRIVER_ADDR 0x20 #define LED_HOR_DIR_ADDR 0x00 #define LED_VER_DIR_ADDR 0x01 #define LED_HOR_REG_ADDR 0x14 #define LED_VER_REG_ADDR 0x15 #define LED_HOR 0u #define LED_VER 1u /* * ======================================================================= * LED Driver prototypes * ======================================================================= */ void init_led_driver(void); void led_gpio_update(uint8_t data, uint8_t ver_or_hor); void led_decode_position(void); void led_reset(void); #endif #endif /* LED_DRIVER_H_ */