Files
@ 6f724d71c0ec
Branch filter:
Location: therm/platform_config.h - annotation
6f724d71c0ec
3.1 KiB
text/plain
Stripped out some code and added USB init. May have bricked IC.
5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 4d88a377e1fe 5dc11468ff0b 5dc11468ff0b 675c16cde5b1 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 4d88a377e1fe 675c16cde5b1 675c16cde5b1 675c16cde5b1 4d88a377e1fe 675c16cde5b1 675c16cde5b1 675c16cde5b1 675c16cde5b1 675c16cde5b1 675c16cde5b1 675c16cde5b1 4d88a377e1fe 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b 5dc11468ff0b | /**
******************************************************************************
* @file platform_config.h
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Evaluation board specific configuration file.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
*
* 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.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __PLATFORM_CONFIG_H
#define __PLATFORM_CONFIG_H
/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx.h"
/* Exported types ------------------------------------------------------------*/
/*Unique Devices IDs register set*/
#if defined(STM32L1XX_MD) || defined(STM32L1XX_HD) || defined(STM32L1XX_MD_PLUS)
#define ID1 (0x1FF80050)
#define ID2 (0x1FF80054)
#define ID3 (0x1FF80064)
#elif defined (STM32F37X) || defined(STM32F30X)
#define ID1 (0x1FFFF7AC)
#define ID2 (0x1FFFF7B0)
#define ID3 (0x1FFFF7B4)
#else /*STM32F1x*/
#define ID1 (0x1FFFF7E8)
#define ID2 (0x1FFFF7EC)
#define ID3 (0x1FFFF7F0)
#endif
#if !defined(USB_USE_EXTERNAL_PULLUP)
#define STM32L15_USB_CONNECT SYSCFG_USBPuCmd(ENABLE)
#define STM32L15_USB_DISCONNECT SYSCFG_USBPuCmd(DISABLE)
#elif defined(USB_USE_EXTERNAL_PULLUP)
/* PA0 is chosen just as illustrating example, you should modify the defines
below according to your hardware configuration. */
#define USB_DISCONNECT GPIOA
#define USB_DISCONNECT_PIN GPIO_Pin_0
#define RCC_AHBPeriph_GPIO_DISCONNECT RCC_AHBPeriph_GPIOA
#define STM32L15_USB_CONNECT GPIO_ResetBits(USB_DISCONNECT, USB_DISCONNECT_PIN)
#define STM32L15_USB_DISCONNECT GPIO_SetBits(USB_DISCONNECT, USB_DISCONNECT_PIN)
#endif /* USB_USE_EXTERNAL_PULLUP */
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
#endif /* __PLATFORM_CONFIG_H */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|