diff options
Diffstat (limited to 'drivers/issi/is31fl3731-simple.c')
| -rw-r--r-- | drivers/issi/is31fl3731-simple.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/issi/is31fl3731-simple.c b/drivers/issi/is31fl3731-simple.c index fad4676de..bd3bb4746 100644 --- a/drivers/issi/is31fl3731-simple.c +++ b/drivers/issi/is31fl3731-simple.c | |||
| @@ -16,21 +16,9 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #ifdef __AVR__ | ||
| 20 | # include <avr/interrupt.h> | ||
| 21 | # include <avr/io.h> | ||
| 22 | # include <util/delay.h> | ||
| 23 | #else | ||
| 24 | # include "wait.h" | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #include <stdint.h> | ||
| 28 | #include <stdbool.h> | ||
| 29 | #include <string.h> | ||
| 30 | #include "is31fl3731-simple.h" | 19 | #include "is31fl3731-simple.h" |
| 31 | #include "i2c_master.h" | 20 | #include "i2c_master.h" |
| 32 | #include "progmem.h" | 21 | #include "wait.h" |
| 33 | #include "print.h" | ||
| 34 | 22 | ||
| 35 | // This is a 7-bit address, that gets left-shifted and bit 0 | 23 | // This is a 7-bit address, that gets left-shifted and bit 0 |
| 36 | // set to 0 for write, 1 for read (as per I2C protocol) | 24 | // set to 0 for write, 1 for read (as per I2C protocol) |
| @@ -156,6 +144,7 @@ void IS31FL3731_init(uint8_t addr) { | |||
| 156 | 144 | ||
| 157 | // enable software shutdown | 145 | // enable software shutdown |
| 158 | IS31FL3731_write_register(addr, ISSI_REG_SHUTDOWN, 0x00); | 146 | IS31FL3731_write_register(addr, ISSI_REG_SHUTDOWN, 0x00); |
| 147 | |||
| 159 | // this delay was copied from other drivers, might not be needed | 148 | // this delay was copied from other drivers, might not be needed |
| 160 | wait_ms(10); | 149 | wait_ms(10); |
| 161 | 150 | ||
