summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/fmradio-i2c-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/fmradio-i2c-as3525.c')
-rw-r--r--firmware/target/arm/as3525/fmradio-i2c-as3525.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c
index 9e8dc63144..70287c38b8 100644
--- a/firmware/target/arm/as3525/fmradio-i2c-as3525.c
+++ b/firmware/target/arm/as3525/fmradio-i2c-as3525.c
@@ -158,11 +158,11 @@ void fmradio_i2c_init(void)
158int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count) 158int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count)
159{ 159{
160#ifdef SANSA_FUZEV2 160#ifdef SANSA_FUZEV2
161 CCU_IO &= ~(1<<12); 161 bitclr32(&CCU_IO, 1<<12);
162#endif 162#endif
163 int ret = i2c_write_data(fm_i2c_bus, address, -1, buf, count); 163 int ret = i2c_write_data(fm_i2c_bus, address, -1, buf, count);
164#ifdef SANSA_FUZEV2 164#ifdef SANSA_FUZEV2
165 CCU_IO |= 1<<12; 165 bitset32(&CCU_IO, 1<<12);
166#endif 166#endif
167 return ret; 167 return ret;
168} 168}
@@ -170,11 +170,11 @@ int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count
170int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count) 170int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
171{ 171{
172#ifdef SANSA_FUZEV2 172#ifdef SANSA_FUZEV2
173 CCU_IO &= ~(1<<12); 173 bitclr32(&CCU_IO, 1<<12);
174#endif 174#endif
175 int ret = i2c_read_data(fm_i2c_bus, address, -1, buf, count); 175 int ret = i2c_read_data(fm_i2c_bus, address, -1, buf, count);
176#ifdef SANSA_FUZEV2 176#ifdef SANSA_FUZEV2
177 CCU_IO |= 1<<12; 177 bitset32(&CCU_IO, 1<<12);
178#endif 178#endif
179 return ret; 179 return ret;
180} 180}