ARMEBS4  revision-26.06.2015
usbd_flash_if.h
1 #include "heivs/config.h"
2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
3 /**
4  ******************************************************************************
5  * @file usbd_flash_if.h
6  * @author MCD Application Team
7  * @version V1.1.0
8  * @date 19-March-2012
9  * @brief Header for usbd_flash_if.c file.
10  ******************************************************************************
11  * @attention
12  *
13  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
14  *
15  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16  * You may not use this file except in compliance with the License.
17  * You may obtain a copy of the License at:
18  *
19  * http://www.st.com/software_license_agreement_liberty_v2
20  *
21  * Unless required by applicable law or agreed to in writing, software
22  * distributed under the License is distributed on an "AS IS" BASIS,
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24  * See the License for the specific language governing permissions and
25  * limitations under the License.
26  *
27  ******************************************************************************
28  */
29 
30 /* Define to prevent recursive inclusion -------------------------------------*/
31 #ifndef __FLASH_IF_MAL_H
32 #define __FLASH_IF_MAL_H
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm32/usbd_dfu_mal.h"
36 
37 /* Exported types ------------------------------------------------------------*/
38 /* Exported constants --------------------------------------------------------*/
39 #define FLASH_START_ADD 0x08000000
40 
41 #ifdef STM32F2XX
42  #define FLASH_END_ADD 0x08100000
43  #define FLASH_IF_STRING "@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
44 #elif defined(STM32F4XX)
45  #define FLASH_END_ADD 0x08100000
46  #define FLASH_IF_STRING "@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
47 #elif defined(STM32F10X_CL)
48  #define FLASH_END_ADD 0x08040000
49  #define FLASH_IF_STRING "@Internal Flash /0x08000000/06*002Ka,122*002Kg"
50 #endif /* STM32F2XX */
51 
52 
53 extern DFU_MAL_Prop_TypeDef DFU_Flash_cb;
54 
55 /* Exported macro ------------------------------------------------------------*/
56 /* Exported functions ------------------------------------------------------- */
57 
58 #endif /* __FLASH_IF_MAL_H */
59 
60 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
61 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file