/** EMZ we only really need COM1, EVAL_COM1, ****************************************************************************** * @file stm32l152d_eval.h * @author MCD Application Team * @version V1.0.1 * @date 09-March-2012 * @brief This file contains definitions for STM32L152D_EVAL's Leds, push-buttons * COM ports and Temperature Sensor LM75 (on I2C) hardware resources. ****************************************************************************** * @attention * *

© COPYRIGHT 2012 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *a ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32L152D_EVAL_H #define __STM32L152D_EVAL_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32l1xx.h" typedef enum { COM1 = 0, COM2 = 1 } COM_TypeDef; /** * @} */ #define COMn 1 /** * @brief Definition for COM port1, connected to USART1 */ #define EVAL_COM1 USART1 #define EVAL_COM1_CLK RCC_APB2Periph_USART1 #define EVAL_COM1_TX_PIN GPIO_Pin_9 #define EVAL_COM1_TX_GPIO_PORT GPIOA #define EVAL_COM1_TX_GPIO_CLK RCC_AHBPeriph_GPIOA #define EVAL_COM1_TX_SOURCE GPIO_PinSource9 #define EVAL_COM1_TX_AF GPIO_AF_USART1 #define EVAL_COM1_RX_PIN GPIO_Pin_10 #define EVAL_COM1_RX_GPIO_PORT GPIOA #define EVAL_COM1_RX_GPIO_CLK RCC_AHBPeriph_GPIOA #define EVAL_COM1_RX_SOURCE GPIO_PinSource10 #define EVAL_COM1_RX_AF GPIO_AF_USART1 #define EVAL_COM1_IRQn USART1_IRQn /** @defgroup STM32L152D_EVAL_LOW_LEVEL_Exported_Functions * @{ */ void STM_EVAL_COMInit(COM_TypeDef COM, USART_InitTypeDef* USART_InitStruct); #ifdef __cplusplus } #endif #endif /* __STM32L152D_EVAL_H */ /** * @} */ /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/