diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-21 14:09:04 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-21 14:09:04 -0600 |
commit | 55ff857fdd75da4f086fbff603758d905211eb90 (patch) | |
tree | 189d5a549c896c1fdc2c3083f6146fb5d945df42 /nuttx/arch/arm/src/tiva/tiva_ssi.c | |
parent | 778cf11f47e79d94829b7cd430c4184f966b7b73 (diff) | |
download | nuttx-55ff857fdd75da4f086fbff603758d905211eb90.tar.gz nuttx-55ff857fdd75da4f086fbff603758d905211eb90.tar.bz2 nuttx-55ff857fdd75da4f086fbff603758d905211eb90.zip |
Improved comments
Diffstat (limited to 'nuttx/arch/arm/src/tiva/tiva_ssi.c')
-rw-r--r-- | nuttx/arch/arm/src/tiva/tiva_ssi.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/tiva/tiva_ssi.c b/nuttx/arch/arm/src/tiva/tiva_ssi.c index 36c89d488..c313a7231 100644 --- a/nuttx/arch/arm/src/tiva/tiva_ssi.c +++ b/nuttx/arch/arm/src/tiva/tiva_ssi.c @@ -1475,9 +1475,18 @@ FAR struct spi_dev_s *up_spiinitialize(int port) priv = &g_ssidev[SSI0_NDX]; - /* Enable power and clocking to the SSI0 peripheral */ + /* Enable power and clocking to the SSI0 peripheral. + * + * - Enable Power (TM4C129 family only): Applies power (only) to the + * SSI0 peripheral. This is not an essential step since enabling + * clocking will also apply power. The only significance is that + * the SSI0 state will be retained if the SSI0 clocking is + * subsequently disabled. + * - Enable Clocking (All families): Applies both power and clocking + * to the SSI0 peripheral, bringing it a fully functional state. + */ - tiva_ssi0_enablepwr(); /* State will be ratained if clocking disabled */ + tiva_ssi0_enablepwr(); tiva_ssi0_enableclk(); /* Configure SSI0 GPIOs (NOTE that SS is not initialized here, the @@ -1497,9 +1506,19 @@ FAR struct spi_dev_s *up_spiinitialize(int port) priv = &g_ssidev[SSI1_NDX]; - /* Enable power and clocking to the SSI1 peripheral */ + /* Enable power and clocking to the SSI1 peripheral. + * + * - Enable Power (TM4C129 family only): Applies power (only) to the + * SSI1 peripheral. This is not an essential step since enabling + * clocking will also apply power. The only significance is that + * the SSI1 state will be retained if the SSI1 clocking is + * subsequently disabled. + * - Enable Clocking (All families): Applies both power and clocking + * to the SSI1 peripheral, bringing it a fully functional state. + */ + - tiva_ssi1_enablepwr(); /* State will be ratained if clocking disabled */ + tiva_ssi1_enablepwr(); tiva_ssi1_enableclk(); /* Configure SSI1 GPIOs */ |