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