From 278fc39f993660a8d7ebf4df4a89f6beb10c7f7b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 17 Sep 2011 17:53:57 +0000 Subject: UART driver tested with STM32L. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3330 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/GPIOv2/pal_lld.h | 40 ++------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) (limited to 'os') diff --git a/os/hal/platforms/STM32/GPIOv2/pal_lld.h b/os/hal/platforms/STM32/GPIOv2/pal_lld.h index 4c82141e3..6c799c14c 100644 --- a/os/hal/platforms/STM32/GPIOv2/pal_lld.h +++ b/os/hal/platforms/STM32/GPIOv2/pal_lld.h @@ -95,32 +95,6 @@ #define PAL_MODE_INPUT_PULLDOWN (PAL_STM32_MODE_INPUT | \ PAL_STM32_PUDR_PULLDOWN) -/** - * @brief Alternate input high-Z pad. - * - * @param[in] n alternate function selector - */ -#define PAL_MODE_ALT_INPUT(n) (PAL_STM32_MODE_INPUT | \ - PAL_STM32_ALTERNATE(n)) - -/** - * @brief Alternate input pad with weak pull up resistor. - * - * @param[in] n alternate function selector - */ -#define PAL_MODE_ALT_INPUT_PULLUP(n) (PAL_STM32_MODE_INPUT | \ - PAL_STM32_PUDR_PULLUP | \ - PAL_STM32_ALTERNATE(n)) - -/** - * @brief Alternate input pad with weak pull down resistor. - * - * @param[in] n alternate function selector - */ -#define PAL_MODE_ALT_INPUT_PULLDOWN(n) (PAL_STM32_MODE_INPUT | \ - PAL_STM32_PUDR_PULLDOWN | \ - PAL_STM32_ALTERNATE(n)) - /** * @brief Analog input mode. */ @@ -139,21 +113,11 @@ PAL_STM32_OTYPE_OPENDRAIN) /** - * @brief Alternate push-pull output. - * - * @param[in] n alternate function selector - */ -#define PAL_MODE_ALT_OUTPUT_PUSHPULL(n) (PAL_STM32_MODE_ALTERNATE | \ - PAL_STM32_OTYPE_PUSHPULL | \ - PAL_STM32_ALTERNATE(n)) - -/** - * @brief Alternate push-pull output. + * @brief Alternate function. * * @param[in] n alternate function selector */ -#define PAL_MODE_ALT_OUTPUT_OPENDRAIN(n) (PAL_STM32_MODE_ALTERNATE | \ - PAL_STM32_OTYPE_OPENDRAIN | \ +#define PAL_MODE_ALTERNATE(n) (PAL_STM32_MODE_ALTERNATE | \ PAL_STM32_ALTERNATE(n)) /*===========================================================================*/ -- cgit v1.2.3