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
This commit is contained in:
parent
d0a132a7a4
commit
30e3350030
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue