Add generated bit/shift/mask #defines for CGU, CREG, RGU, USB (USB0 only) peripherals.

Added script used to generate #defines above.
Fixed one small change in the #define naming scheme in i2c0_init().
This commit is contained in:
Jared Boone
2012-09-27 16:57:34 -07:00
committed by Piotr Esden-Tempski
parent 49b2be5224
commit 24d8d81b43
6 changed files with 2886 additions and 41 deletions

View File

@@ -47,7 +47,7 @@ void i2c0_init(void)
SCU_SFSI2C0 = SCU_I2C0_NOMINAL;
/* use IRC as clock source for APB1 (including I2C0) */
CGU_BASE_APB1_CLK = (CGU_SRC_IRC << CGU_BASE_CLK_SEL_SHIFT);
CGU_BASE_APB1_CLK = CGU_BASE_APB1_CLK_CLK_SEL(CGU_SRC_IRC);
/* FIXME assuming we're on IRC at 12 MHz */