From 609b15be00e961794e8a75bf39b714288fda57fc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 11 Jan 2013 10:29:36 +0000 Subject: [PATCH] Different mode for unconnected pins. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5054 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/GPIOv2/pal_lld.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/hal/platforms/STM32/GPIOv2/pal_lld.h b/os/hal/platforms/STM32/GPIOv2/pal_lld.h index d00180461..c3d965a57 100644 --- a/os/hal/platforms/STM32/GPIOv2/pal_lld.h +++ b/os/hal/platforms/STM32/GPIOv2/pal_lld.h @@ -95,9 +95,9 @@ #define PAL_MODE_RESET PAL_STM32_MODE_INPUT /** - * @brief This mode is implemented as output. + * @brief This mode is implemented as input with pull-up. */ -#define PAL_MODE_UNCONNECTED PAL_STM32_MODE_OUTPUT +#define PAL_MODE_UNCONNECTED PAL_MODE_INPUT_PULLUP /** * @brief Regular input high-Z pad.