cc y / mbed

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Apr 27 12:10:56 2016 -0500
Revision:
119:aae6fcc7d9bb
Parent:
96:487b796308b0
Release 119 of the mbed library

Changes:
- new targets - EFM32PG_STK3401, NUCLEO_L031K6
- ST - hwflwctl support for NUCLEO_L476RG
- Update STM32CUBE_L0 from v1.2 to v1.5
- STM32F7 - bugfix - The weak function HAL_Delay is overwritten to use us ticker API.
- Maxim - Fixing the send break for the MAXWSNENV and MAX32600MBED

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 84:0b3ab51c8877 1 /**
bogdanm 84:0b3ab51c8877 2 ******************************************************************************
bogdanm 84:0b3ab51c8877 3 * @file stm32l0xx_hal_flash_ramfunc.h
bogdanm 84:0b3ab51c8877 4 * @author MCD Application Team
Kojto 119:aae6fcc7d9bb 5 * @version V1.5.0
Kojto 119:aae6fcc7d9bb 6 * @date 8-January-2016
bogdanm 84:0b3ab51c8877 7 * @brief Header file of FLASH RAMFUNC driver.
bogdanm 84:0b3ab51c8877 8 ******************************************************************************
bogdanm 84:0b3ab51c8877 9 * @attention
bogdanm 84:0b3ab51c8877 10 *
Kojto 119:aae6fcc7d9bb 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
bogdanm 84:0b3ab51c8877 12 *
bogdanm 84:0b3ab51c8877 13 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 84:0b3ab51c8877 14 * are permitted provided that the following conditions are met:
bogdanm 84:0b3ab51c8877 15 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 84:0b3ab51c8877 16 * this list of conditions and the following disclaimer.
bogdanm 84:0b3ab51c8877 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 84:0b3ab51c8877 18 * this list of conditions and the following disclaimer in the documentation
bogdanm 84:0b3ab51c8877 19 * and/or other materials provided with the distribution.
bogdanm 84:0b3ab51c8877 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 84:0b3ab51c8877 21 * may be used to endorse or promote products derived from this software
bogdanm 84:0b3ab51c8877 22 * without specific prior written permission.
bogdanm 84:0b3ab51c8877 23 *
bogdanm 84:0b3ab51c8877 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 84:0b3ab51c8877 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 84:0b3ab51c8877 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 84:0b3ab51c8877 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 84:0b3ab51c8877 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 84:0b3ab51c8877 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 84:0b3ab51c8877 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 84:0b3ab51c8877 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 84:0b3ab51c8877 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 84:0b3ab51c8877 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 84:0b3ab51c8877 34 *
bogdanm 84:0b3ab51c8877 35 ******************************************************************************
bogdanm 84:0b3ab51c8877 36 */
bogdanm 84:0b3ab51c8877 37
bogdanm 84:0b3ab51c8877 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 84:0b3ab51c8877 39 #ifndef __STM32L0xx_FLASH_RAMFUNC_H
bogdanm 84:0b3ab51c8877 40 #define __STM32L0xx_FLASH_RAMFUNC_H
bogdanm 84:0b3ab51c8877 41
bogdanm 84:0b3ab51c8877 42 #ifdef __cplusplus
bogdanm 84:0b3ab51c8877 43 extern "C" {
bogdanm 84:0b3ab51c8877 44 #endif
bogdanm 84:0b3ab51c8877 45
bogdanm 84:0b3ab51c8877 46 /* Includes ------------------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 47 #include "stm32l0xx_hal_def.h"
bogdanm 84:0b3ab51c8877 48
bogdanm 84:0b3ab51c8877 49 /** @addtogroup STM32L0xx_HAL_Driver
bogdanm 84:0b3ab51c8877 50 * @{
bogdanm 84:0b3ab51c8877 51 */
bogdanm 84:0b3ab51c8877 52
Kojto 119:aae6fcc7d9bb 53 /** @defgroup FLASH_RAMFUNC FLASH Ram Function
bogdanm 84:0b3ab51c8877 54 * @{
bogdanm 84:0b3ab51c8877 55 */
bogdanm 84:0b3ab51c8877 56
bogdanm 84:0b3ab51c8877 57 /* Exported functions --------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 58
Kojto 119:aae6fcc7d9bb 59 /** @defgroup FLASH_RAMFUNC_Exported_Functions FLASH Ram Exported Functions
Kojto 96:487b796308b0 60 * @{
Kojto 96:487b796308b0 61 */
bogdanm 84:0b3ab51c8877 62
Kojto 96:487b796308b0 63 /*
Kojto 96:487b796308b0 64 * @brief FLASH memory functions that should be executed from internal SRAM.
Kojto 96:487b796308b0 65 * These functions are defined inside the "stm32l0xx_hal_flash_ramfunc.c"
Kojto 96:487b796308b0 66 * file.
Kojto 96:487b796308b0 67 */
Kojto 96:487b796308b0 68
Kojto 119:aae6fcc7d9bb 69 /** @defgroup FLASH_RAMFUNC_Exported_Functions_Group1 FLASH RAM peripheral features functions
Kojto 96:487b796308b0 70 * @{
Kojto 96:487b796308b0 71 */
Kojto 96:487b796308b0 72 __RAM_FUNC HAL_FLASHEx_HalfPageProgram(uint32_t Address, uint32_t* pBuffer);
bogdanm 92:4fc01daae5a5 73 __RAM_FUNC HAL_FLASHEx_EnableRunPowerDown(void);
bogdanm 92:4fc01daae5a5 74 __RAM_FUNC HAL_FLASHEx_DisableRunPowerDown(void);
Kojto 96:487b796308b0 75 __RAM_FUNC HAL_FLASHRAM_GetError(uint32_t * error);
Kojto 96:487b796308b0 76 /**
Kojto 96:487b796308b0 77 * @}
Kojto 96:487b796308b0 78 */
bogdanm 84:0b3ab51c8877 79
Kojto 96:487b796308b0 80 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 119:aae6fcc7d9bb 81 /** @defgroup FLASH_RAMFUNC_Exported_Functions_Group2 FLASH RAM programming and erasing operation functions
Kojto 96:487b796308b0 82 * @{
Kojto 96:487b796308b0 83 */
Kojto 96:487b796308b0 84 __RAM_FUNC HAL_FLASHEx_EraseParallelPage(uint32_t Page_Address1, uint32_t Page_Address2);
Kojto 96:487b796308b0 85 __RAM_FUNC HAL_FLASHEx_ProgramParallelHalfPage(uint32_t Address1, uint32_t* pBuffer1, uint32_t Address2, uint32_t* pBuffer2);
Kojto 96:487b796308b0 86 /**
Kojto 96:487b796308b0 87 * @}
Kojto 96:487b796308b0 88 */
Kojto 96:487b796308b0 89 #endif /* STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
bogdanm 84:0b3ab51c8877 90
Kojto 96:487b796308b0 91 /**
Kojto 96:487b796308b0 92 * @}
Kojto 119:aae6fcc7d9bb 93 */
Kojto 119:aae6fcc7d9bb 94
Kojto 119:aae6fcc7d9bb 95 /* Define the private group ***********************************/
Kojto 119:aae6fcc7d9bb 96 /**************************************************************/
Kojto 119:aae6fcc7d9bb 97 /** @defgroup FLASH_RAMFUNC_Private FLASH Ram Private
Kojto 119:aae6fcc7d9bb 98 * @{
Kojto 119:aae6fcc7d9bb 99 */
Kojto 119:aae6fcc7d9bb 100 /**
Kojto 119:aae6fcc7d9bb 101 * @}
Kojto 119:aae6fcc7d9bb 102 */
Kojto 119:aae6fcc7d9bb 103 /**************************************************************/
bogdanm 84:0b3ab51c8877 104
bogdanm 84:0b3ab51c8877 105 /**
bogdanm 84:0b3ab51c8877 106 * @}
bogdanm 84:0b3ab51c8877 107 */
bogdanm 84:0b3ab51c8877 108
bogdanm 84:0b3ab51c8877 109 /**
bogdanm 84:0b3ab51c8877 110 * @}
bogdanm 84:0b3ab51c8877 111 */
bogdanm 84:0b3ab51c8877 112
bogdanm 84:0b3ab51c8877 113 #ifdef __cplusplus
bogdanm 84:0b3ab51c8877 114 }
bogdanm 84:0b3ab51c8877 115 #endif
bogdanm 84:0b3ab51c8877 116
bogdanm 84:0b3ab51c8877 117 #endif /* __STM32L0xx_FLASH_RAMFUNC_H */
bogdanm 84:0b3ab51c8877 118
bogdanm 84:0b3ab51c8877 119 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 96:487b796308b0 120