From 146a21e63037e4d9effc3349c5eecfe09c0b8399 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 1 Nov 2009 20:13:47 +0000 Subject: [PATCH] Fix compilation error with register debug off git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2207 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_usbdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index 0a090d9caf..0ee59badf8 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -614,6 +614,7 @@ static void stm32_putreg(uint16 val, uint32 addr) * Name: stm32_dumpep ****************************************************************************/ +#if defined(CONFIG_STM32_USBDEV_REGDEBUG) && defined(CONFIG_DEBUG) static void stm32_dumpep(int epno) { uint32 addr; @@ -650,6 +651,7 @@ static void stm32_dumpep(int epno) addr = STM32_USB_COUNT_RX(epno); lldbg(" COUNT: [%08x] %04x\n", addr, getreg16(addr)); } +#endif /**************************************************************************** * Name: stm32_checksetup