Minor fixes for compile with DEBUG enabled

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4154 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-12-10 02:25:30 +00:00
parent 8493122102
commit 3d423084f5
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ int stm32_dumpgpio(uint32_t pinset, const char *msg)
lldbg("GPIO%c pinset: %08x base: %08x -- %s\n",
g_portchar[port], pinset, base, msg);
if ((getreg32(STM32_RCC_APB1ENR) & RCC_AH1BENR_GPIOEN(port)) != 0)
if ((getreg32(STM32_RCC_APB1ENR) & RCC_AHB1ENR_GPIOEN(port)) != 0)
{
lldbg(" MODE: %08x OTYPE: %04x OSPEED: %08x PUPDR: %08x\n",
getreg32(base + STM32_GPIO_MODER_OFFSET), getreg32(base + STM32_GPIO_OTYPER_OFFSET),

View File

@ -1576,7 +1576,7 @@ int stm32_ethinitialize(int intf)
/* Get the interface structure associated with this interface number. */
DEBUGASSERT(inf < STM32_NETHERNET);
DEBUGASSERT(intf < STM32_NETHERNET);
priv = &g_stm32ethmac[intf];
/* Initialize the driver structure */