Added SCU I2C0 specific configuration.

This commit is contained in:
TitanMKD
2012-06-03 18:57:33 +02:00
parent 646e8f20f1
commit 67a048b5b0
2 changed files with 77 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ void gpio_setup(void)
scu_pinmux(SCU_PINMUX_BOOT2, SCU_GPIO_FAST);
scu_pinmux(SCU_PINMUX_BOOT3, SCU_GPIO_FAST);
/* Configure SCU I2C0 Peripheral (to be moved later in I2C driver) */
SCU_SFSI2C0 = SCU_I2C0_NOMINAL;
/* Configure all GPIO as Input (safe state) */
GPIO0_DIR = 0;
GPIO1_DIR = 0;