From 3f53115539e279a12f04ce07ef9f021bfee310fa Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 14 Nov 2015 09:12:42 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8488 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/boards/ST_NUCLEO_L053R8/board.h | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'os/hal/boards/ST_NUCLEO_L053R8/board.h') diff --git a/os/hal/boards/ST_NUCLEO_L053R8/board.h b/os/hal/boards/ST_NUCLEO_L053R8/board.h index 863160d17..9a9035ba4 100644 --- a/os/hal/boards/ST_NUCLEO_L053R8/board.h +++ b/os/hal/boards/ST_NUCLEO_L053R8/board.h @@ -29,11 +29,10 @@ /* * Board oscillators-related settings. - * NOTE: LSE not fitted. * NOTE: HSE not fitted. */ #if !defined(STM32_LSECLK) -#define STM32_LSECLK 0U +#define STM32_LSECLK 32768U #endif #define STM32_LSEDRV (3U << 11U) @@ -137,23 +136,6 @@ #define GPIOH_PIN14 14U #define GPIOH_PIN15 15U -/* - * IO lines assignments. - */ -#define LINE_USART_TX PAL_LINE(GPIOA, 2U) -#define LINE_USART_RX PAL_LINE(GPIOA, 3U) -#define LINE_LED_GREEN PAL_LINE(GPIOA, 5U) -#define LINE_SWDIO PAL_LINE(GPIOA, 13U) -#define LINE_SWCLK PAL_LINE(GPIOA, 14U) - -#define LINE_SWO PAL_LINE(GPIOB, 3U) - -#define LINE_BUTTON PAL_LINE(GPIOC, 13U) - - -#define LINE_OSC_IN PAL_LINE(GPIOH, 0U) -#define LINE_OSC_OUT PAL_LINE(GPIOH, 1U) - /* * I/O ports initial setup, this configuration is established soon after reset * in the initialization code. @@ -167,10 +149,10 @@ #define PIN_ODR_HIGH(n) (1U << (n)) #define PIN_OTYPE_PUSHPULL(n) (0U << (n)) #define PIN_OTYPE_OPENDRAIN(n) (1U << (n)) -#define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U)) +#define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U)) #define PIN_OSPEED_LOW(n) (1U << ((n) * 2U)) -#define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U)) -#define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U)) +#define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U)) +#define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U)) #define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U)) #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) -- cgit v1.2.3