Extract LED driver related functions to led_driver.[ch]

This commit is contained in:
László Monda
2016-09-26 20:28:12 +02:00
parent 9e3d512e89
commit b280fde8a5
6 changed files with 72 additions and 54 deletions

19
right/src/led_driver.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef __LED_DRIVER_H__
#define __LED_DRIVER_H__
// Includes:
#include "fsl_gpio.h"
#include "fsl_port.h"
#include "fsl_i2c.h"
#include "i2c.h"
#include "i2c_addresses.h"
// Macros:
extern void LedDriver_WriteBuffer(uint8_t txBuffer[], uint8_t size);
extern void LedDriver_WriteRegister(uint8_t reg, uint8_t val);
extern void LedDriver_EnableAllLeds();
#endif