Fix missing PCONP bit definition to enable GPIO

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2768 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-07-03 04:58:51 +00:00
parent 2e2f22394a
commit 4d7db42f77
5 changed files with 19 additions and 7 deletions

View File

@ -1162,3 +1162,5 @@
for SPI-based MMC/SD cards and integrate into the NSH example.
* arch/arm/src/lm3s/lm3s_vectors.S - Correct vectors for GPIOC & D
interrupts.
* arch/arm/src/lpc17xx/lp17_clockconfig.c - Power was not being
provided to GPIO module. This is a critical bugfix!

View File

@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
<p>Last Updated: June 30, 2010</p>
<p>Last Updated: July 2, 2010</p>
</td>
</tr>
</table>
@ -1827,6 +1827,8 @@ nuttx-5.8 2010-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
for SPI-based MMC/SD cards and integrate into the NSH example.
* arch/arm/src/lm3s/lm3s_vectors.S - Correct vectors for GPIOC & D
interrupts.
* arch/arm/src/lpc17xx/lp17_clockconfig.c - Power was not being
provided to GPIO module. This is a critical bugfix!
pascal-2.1 2010-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;

View File

@ -189,11 +189,11 @@ void lpc17_clockconfig(void)
putreg32(0, LPC17_SYSCON_PCLKSEL0);
putreg32(0, LPC17_SYSCON_PCLKSEL1);
/* Disable power to all peripherals. They must be re-powered one at a time by each
* device driver when the driver is initialized.
/* Disable power to all peripherals (execpt GPIO). Peripherals must be re-powered
* one at a time by each device driver when the driver is initialized.
*/
putreg32(0, LPC17_SYSCON_PCONP);
putreg32(SYSCON_PCONP_PCGPIO, LPC17_SYSCON_PCONP);
/* Disable CLKOUT */

View File

@ -382,7 +382,7 @@
#define SYSCON_PCONP_PCADC (1 << 12) /* Bit 12: A/D converter (ADC) power/clock control */
#define SYSCON_PCONP_PCCAN1 (1 << 13) /* Bit 13: CAN Controller 1 power/clock control */
#define SYSCON_PCONP_PCCAN2 (1 << 14) /* Bit 14: CAN Controller 2 power/clock control */
/* Bit 15: Reserved */
#define SYSCON_PCONP_PCGPIO (1 << 15) /* Bit 15: GPIOs power/clock enable */
#define SYSCON_PCONP_PCRIT (1 << 16) /* Bit 16: Repetitive Interrupt Timer power/clock control */
#define SYSCON_PCONP_PCMCPWM (1 << 17) /* Bit 17: Motor Control PWM */
#define SYSCON_PCONP_PCQEI (1 << 18) /* Bit 18: Quadrature Encoder power/clock control */

View File

@ -340,7 +340,11 @@ void up_ledon(int led)
#ifdef LED_VERBOSE
if (led != LED_INIRQ)
{
led_dumpgpio("up_ledon() Exit");
ledvdbg("led: %d LED1: %d LED2: %d HB: %d\n",
led, g_led1on[led], g_led2on[led], g_ledhbon[led]);
ledvdbg("LED1: {(%d,%d), (%d,%d)} LED2: {(%d,%d), (%d,%d)}\n",
g_prevled1a, g_currled1a, g_prevled1b, g_currled1b,
g_prevled2a, g_currled2a, g_prevled2b, g_currled2b);
}
#endif
}
@ -358,7 +362,11 @@ void up_ledoff(int led)
#ifdef LED_VERBOSE
if (led != LED_INIRQ)
{
led_dumpgpio("up_ledoff() Exit");
ledvdbg("led: %d LED1: %d LED2: %d HB: %d\n",
led, g_led1off[led], g_led2off[led], g_ledhboff[led]);
ledvdbg("LED1: {(%d,%d), (%d,%d)} LED2: {(%d,%d), (%d,%d)}\n",
g_prevled1a, g_currled1a, g_prevled1b, g_currled1b,
g_prevled2a, g_currled2a, g_prevled2b, g_currled2b);
}
#endif
}