diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/fmradio-i2c-as3525.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c index 18f29dbc57..72775eda75 100644 --- a/firmware/target/arm/as3525/fmradio-i2c-as3525.c +++ b/firmware/target/arm/as3525/fmradio-i2c-as3525.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2006 by Bertrik Sikken | 10 | * Copyright (C) 2008 by Bertrik Sikken |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
@@ -43,6 +43,12 @@ | |||
43 | #define I2C_SCL_PIN 7 | 43 | #define I2C_SCL_PIN 7 |
44 | #define I2C_SDA_PIN 6 | 44 | #define I2C_SDA_PIN 6 |
45 | 45 | ||
46 | #elif defined(SANSA_FUZE) || defined(SANSA_E200V2) | ||
47 | #define I2C_GPIO(x) GPIOA_PIN(x) | ||
48 | #define I2C_GPIO_DIR GPIOA_DIR | ||
49 | #define I2C_SCL_PIN 6 | ||
50 | #define I2C_SDA_PIN 7 | ||
51 | |||
46 | #elif | 52 | #elif |
47 | #error no FM I2C GPIOPIN defines | 53 | #error no FM I2C GPIOPIN defines |
48 | #endif | 54 | #endif |
@@ -109,7 +115,7 @@ static void fm_delay(void) | |||
109 | 115 | ||
110 | /* interface towards the generic i2c driver */ | 116 | /* interface towards the generic i2c driver */ |
111 | static struct i2c_interface fm_i2c_interface = { | 117 | static struct i2c_interface fm_i2c_interface = { |
112 | #if defined(SANSA_CLIP) | 118 | #if defined(SANSA_CLIP) || defined(SANSA_FUZE) || defined(SANSA_E200V2) |
113 | .address = 0x10 << 1, | 119 | .address = 0x10 << 1, |
114 | #elif defined(SANSA_M200V4) | 120 | #elif defined(SANSA_M200V4) |
115 | .address = 0xC0, | 121 | .address = 0xC0, |