summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-07-27 23:06:31 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-07-27 23:06:31 +0000
commit30e3350030a4ec46d17e6e3fb412a7022fedd145 (patch)
tree47d923b7478a8e4096cba0adc1d8a6526428473a
parentd0a132a7a4fa358489180e511a6f594eee3e0fb2 (diff)
downloadrockbox-30e3350030a4ec46d17e6e3fb412a7022fedd145.tar.gz
rockbox-30e3350030a4ec46d17e6e3fb412a7022fedd145.tar.bz2
rockbox-30e3350030a4ec46d17e6e3fb412a7022fedd145.zip
Meizu: fix mask for GPIO function selection used for fmradio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22076 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/fmradio-i2c-meizu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c b/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c
index 38c24511cf..02df8f33a1 100644
--- a/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c
+++ b/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c
@@ -38,10 +38,10 @@
#define I2C_SCL_PIN 4
#define I2C_SDA_PIN 2
-#define SCL_DIR_MASK (3<<(4*I2C_SCL_PIN))
+#define SCL_DIR_MASK (0xF<<(4*I2C_SCL_PIN))
#define SCL_DIR_OUT (1<<(4*I2C_SCL_PIN))
#define SCL_DIR_IN 0
-#define SDA_DIR_MASK (3<<(4*I2C_SDA_PIN))
+#define SDA_DIR_MASK (0xF<<(4*I2C_SDA_PIN))
#define SDA_DIR_OUT (1<<(4*I2C_SDA_PIN))
#define SDA_DIR_IN 0