mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
110:165afa46840b
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 106:ba1f97679dad 1 /**
Kojto 106:ba1f97679dad 2 ******************************************************************************
Kojto 106:ba1f97679dad 3 * @file stm32f4xx_hal_hash_ex.h
Kojto 106:ba1f97679dad 4 * @author MCD Application Team
Kojto 122:f9eeca106725 5 * @version V1.5.0
Kojto 122:f9eeca106725 6 * @date 06-May-2016
Kojto 106:ba1f97679dad 7 * @brief Header file of HASH HAL Extension module.
Kojto 106:ba1f97679dad 8 ******************************************************************************
Kojto 106:ba1f97679dad 9 * @attention
Kojto 106:ba1f97679dad 10 *
Kojto 122:f9eeca106725 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
Kojto 106:ba1f97679dad 12 *
Kojto 106:ba1f97679dad 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 106:ba1f97679dad 14 * are permitted provided that the following conditions are met:
Kojto 106:ba1f97679dad 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 106:ba1f97679dad 16 * this list of conditions and the following disclaimer.
Kojto 106:ba1f97679dad 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 106:ba1f97679dad 18 * this list of conditions and the following disclaimer in the documentation
Kojto 106:ba1f97679dad 19 * and/or other materials provided with the distribution.
Kojto 106:ba1f97679dad 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 106:ba1f97679dad 21 * may be used to endorse or promote products derived from this software
Kojto 106:ba1f97679dad 22 * without specific prior written permission.
Kojto 106:ba1f97679dad 23 *
Kojto 106:ba1f97679dad 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 106:ba1f97679dad 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 106:ba1f97679dad 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 106:ba1f97679dad 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 106:ba1f97679dad 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 106:ba1f97679dad 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 106:ba1f97679dad 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 106:ba1f97679dad 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 106:ba1f97679dad 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 106:ba1f97679dad 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 106:ba1f97679dad 34 *
Kojto 106:ba1f97679dad 35 ******************************************************************************
Kojto 106:ba1f97679dad 36 */
Kojto 106:ba1f97679dad 37
Kojto 106:ba1f97679dad 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 106:ba1f97679dad 39 #ifndef __STM32F4xx_HAL_HASH_EX_H
Kojto 106:ba1f97679dad 40 #define __STM32F4xx_HAL_HASH_EX_H
Kojto 106:ba1f97679dad 41
Kojto 106:ba1f97679dad 42 #ifdef __cplusplus
Kojto 106:ba1f97679dad 43 extern "C" {
Kojto 106:ba1f97679dad 44 #endif
Kojto 106:ba1f97679dad 45
Kojto 110:165afa46840b 46 #if defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F479xx)
Kojto 106:ba1f97679dad 47 /* Includes ------------------------------------------------------------------*/
Kojto 106:ba1f97679dad 48 #include "stm32f4xx_hal_def.h"
Kojto 106:ba1f97679dad 49
Kojto 106:ba1f97679dad 50 /** @addtogroup STM32F4xx_HAL_Driver
Kojto 106:ba1f97679dad 51 * @{
Kojto 106:ba1f97679dad 52 */
Kojto 106:ba1f97679dad 53
Kojto 106:ba1f97679dad 54 /** @addtogroup HASHEx
Kojto 106:ba1f97679dad 55 * @brief HASHEx HAL Extension module driver
Kojto 106:ba1f97679dad 56 * @{
Kojto 106:ba1f97679dad 57 */
Kojto 106:ba1f97679dad 58
Kojto 106:ba1f97679dad 59 /* Exported types ------------------------------------------------------------*/
Kojto 106:ba1f97679dad 60 /* Exported constants --------------------------------------------------------*/
Kojto 106:ba1f97679dad 61 /* Exported macro ------------------------------------------------------------*/
Kojto 106:ba1f97679dad 62 /* Exported functions --------------------------------------------------------*/
Kojto 106:ba1f97679dad 63
Kojto 106:ba1f97679dad 64 /** @defgroup HASHEx_Exported_Functions HASHEx Exported Functions
Kojto 106:ba1f97679dad 65 * @{
Kojto 106:ba1f97679dad 66 */
Kojto 106:ba1f97679dad 67
Kojto 106:ba1f97679dad 68 /** @defgroup HASHEx_Exported_Functions_Group1 HASHEx processing using polling functions
Kojto 106:ba1f97679dad 69 * @{
Kojto 106:ba1f97679dad 70 */
Kojto 106:ba1f97679dad 71
Kojto 106:ba1f97679dad 72 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 73 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 74 HAL_StatusTypeDef HAL_HASHEx_SHA224_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 75 HAL_StatusTypeDef HAL_HASHEx_SHA256_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 76
Kojto 106:ba1f97679dad 77 /**
Kojto 106:ba1f97679dad 78 * @}
Kojto 106:ba1f97679dad 79 */
Kojto 106:ba1f97679dad 80
Kojto 106:ba1f97679dad 81 /** @defgroup HASHEx_Exported_Functions_Group2 HMAC processing using polling functions
Kojto 106:ba1f97679dad 82 * @{
Kojto 106:ba1f97679dad 83 */
Kojto 106:ba1f97679dad 84
Kojto 106:ba1f97679dad 85 HAL_StatusTypeDef HAL_HMACEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 86 HAL_StatusTypeDef HAL_HMACEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 87
Kojto 106:ba1f97679dad 88 /**
Kojto 106:ba1f97679dad 89 * @}
Kojto 106:ba1f97679dad 90 */
Kojto 106:ba1f97679dad 91
Kojto 106:ba1f97679dad 92 /** @defgroup HASHEx_Exported_Functions_Group3 HASHEx processing using functions
Kojto 106:ba1f97679dad 93 * @{
Kojto 106:ba1f97679dad 94 */
Kojto 106:ba1f97679dad 95
Kojto 106:ba1f97679dad 96 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer);
Kojto 106:ba1f97679dad 97 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer);
Kojto 106:ba1f97679dad 98
Kojto 106:ba1f97679dad 99 /**
Kojto 106:ba1f97679dad 100 * @}
Kojto 106:ba1f97679dad 101 */
Kojto 106:ba1f97679dad 102
Kojto 106:ba1f97679dad 103 /** @defgroup HASHEx_Exported_Functions_Group4 HASHEx processing using DMA
Kojto 106:ba1f97679dad 104 * @{
Kojto 106:ba1f97679dad 105 */
Kojto 106:ba1f97679dad 106
Kojto 106:ba1f97679dad 107 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 108 HAL_StatusTypeDef HAL_HASHEx_SHA224_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 109 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 110 HAL_StatusTypeDef HAL_HASHEx_SHA256_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout);
Kojto 106:ba1f97679dad 111
Kojto 106:ba1f97679dad 112 /**
Kojto 106:ba1f97679dad 113 * @}
Kojto 106:ba1f97679dad 114 */
Kojto 106:ba1f97679dad 115
Kojto 106:ba1f97679dad 116 /** @defgroup HASHEx_Exported_Functions_Group5 HMAC processing using DMA
Kojto 106:ba1f97679dad 117 * @{
Kojto 106:ba1f97679dad 118 */
Kojto 106:ba1f97679dad 119
Kojto 106:ba1f97679dad 120 HAL_StatusTypeDef HAL_HMACEx_SHA224_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 121 HAL_StatusTypeDef HAL_HMACEx_SHA256_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
Kojto 106:ba1f97679dad 122 /**
Kojto 106:ba1f97679dad 123 * @}
Kojto 106:ba1f97679dad 124 */
Kojto 106:ba1f97679dad 125
Kojto 106:ba1f97679dad 126 /** @defgroup HASHEx_Exported_Functions_Group6 HASHEx processing functions
Kojto 106:ba1f97679dad 127 * @{
Kojto 106:ba1f97679dad 128 */
Kojto 106:ba1f97679dad 129
Kojto 106:ba1f97679dad 130 void HAL_HASHEx_IRQHandler(HASH_HandleTypeDef *hhash);
Kojto 106:ba1f97679dad 131
Kojto 106:ba1f97679dad 132 /**
Kojto 106:ba1f97679dad 133 * @}
Kojto 106:ba1f97679dad 134 */
Kojto 106:ba1f97679dad 135
Kojto 106:ba1f97679dad 136 /**
Kojto 106:ba1f97679dad 137 * @}
Kojto 106:ba1f97679dad 138 */
Kojto 106:ba1f97679dad 139
Kojto 106:ba1f97679dad 140 /* Private types -------------------------------------------------------------*/
Kojto 106:ba1f97679dad 141 /** @defgroup HASHEx_Private_Types HASHEx Private Types
Kojto 106:ba1f97679dad 142 * @{
Kojto 106:ba1f97679dad 143 */
Kojto 106:ba1f97679dad 144
Kojto 106:ba1f97679dad 145 /**
Kojto 106:ba1f97679dad 146 * @}
Kojto 106:ba1f97679dad 147 */
Kojto 106:ba1f97679dad 148
Kojto 106:ba1f97679dad 149 /* Private variables ---------------------------------------------------------*/
Kojto 106:ba1f97679dad 150 /** @defgroup HASHEx_Private_Variables HASHEx Private Variables
Kojto 106:ba1f97679dad 151 * @{
Kojto 106:ba1f97679dad 152 */
Kojto 106:ba1f97679dad 153
Kojto 106:ba1f97679dad 154 /**
Kojto 106:ba1f97679dad 155 * @}
Kojto 106:ba1f97679dad 156 */
Kojto 106:ba1f97679dad 157
Kojto 106:ba1f97679dad 158 /* Private constants ---------------------------------------------------------*/
Kojto 106:ba1f97679dad 159 /** @defgroup HASHEx_Private_Constants HASHEx Private Constants
Kojto 106:ba1f97679dad 160 * @{
Kojto 106:ba1f97679dad 161 */
Kojto 106:ba1f97679dad 162
Kojto 106:ba1f97679dad 163 /**
Kojto 106:ba1f97679dad 164 * @}
Kojto 106:ba1f97679dad 165 */
Kojto 106:ba1f97679dad 166
Kojto 106:ba1f97679dad 167 /* Private macros ------------------------------------------------------------*/
Kojto 106:ba1f97679dad 168 /** @defgroup HASHEx_Private_Macros HASHEx Private Macros
Kojto 106:ba1f97679dad 169 * @{
Kojto 106:ba1f97679dad 170 */
Kojto 106:ba1f97679dad 171
Kojto 106:ba1f97679dad 172 /**
Kojto 106:ba1f97679dad 173 * @}
Kojto 106:ba1f97679dad 174 */
Kojto 106:ba1f97679dad 175
Kojto 106:ba1f97679dad 176 /* Private functions ---------------------------------------------------------*/
Kojto 106:ba1f97679dad 177 /** @defgroup HASHEx_Private_Functions HASHEx Private Functions
Kojto 106:ba1f97679dad 178 * @{
Kojto 106:ba1f97679dad 179 */
Kojto 106:ba1f97679dad 180
Kojto 106:ba1f97679dad 181 /**
Kojto 106:ba1f97679dad 182 * @}
Kojto 106:ba1f97679dad 183 */
Kojto 106:ba1f97679dad 184
Kojto 110:165afa46840b 185 #endif /* STM32F437xx || STM32F439xx || STM32F479xx */
Kojto 106:ba1f97679dad 186 /**
Kojto 106:ba1f97679dad 187 * @}
Kojto 106:ba1f97679dad 188 */
Kojto 106:ba1f97679dad 189
Kojto 106:ba1f97679dad 190 /**
Kojto 106:ba1f97679dad 191 * @}
Kojto 106:ba1f97679dad 192 */
Kojto 106:ba1f97679dad 193
Kojto 106:ba1f97679dad 194 #ifdef __cplusplus
Kojto 106:ba1f97679dad 195 }
Kojto 106:ba1f97679dad 196 #endif
Kojto 106:ba1f97679dad 197
Kojto 106:ba1f97679dad 198 #endif /* __STM32F4xx_HAL_HASH_EX_H */
Kojto 106:ba1f97679dad 199
Kojto 106:ba1f97679dad 200 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/