Pulled from ersky9x

This commit is contained in:
bsongis
2014-06-24 11:14:40 +02:00
parent 751027b4ad
commit 7434c28820
+2
View File
@@ -480,6 +480,8 @@ void i2cInit()
PMC->PMC_PCER0 |= 0x00080000L ; // Enable peripheral clock to TWI0 PMC->PMC_PCER0 |= 0x00080000L ; // Enable peripheral clock to TWI0
TWI0->TWI_CR = TWI_CR_SWRST ; // Reset in case we are restarting
/* Configure PIO */ /* Configure PIO */
pioptr = PIOA ; pioptr = PIOA ;
pioptr->PIO_ABCDSR[0] &= ~0x00000018 ; // Peripheral A pioptr->PIO_ABCDSR[0] &= ~0x00000018 ; // Peripheral A