forked from Imagelibrary/rtems
bsps/stm32h7: update STM32 H7 HAL
This patch updates STM32 H7 HAL source files. The files are taken from two STM projects from their github.com repositories: (i) https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git The project files are still available under BSD-3 license and the version/commit used is: d5fc8d05fc16fa2a2a2f948cf6c6ab39e78358e1 which represents post Release v1.11.1 development tree. (ii) https://github.com/STMicroelectronics/cmsis_device_h7.git The project files were re-licensed from previous BSD-3 to Apache 2.0 license. Fortunately the project does not contain NOTICE file so no need to do anything special when used in RTEMS. The project version/commit imported is: 6d5ef249bec5177e0e2a0880ed62df2132874d99 which is code-wise Release v1.10.3 exactly.
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||
* All rights reserved.</center></h2>
|
||||
* Copyright (c) 2017 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software component is licensed by ST under BSD 3-Clause license,
|
||||
* the "License"; You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at:
|
||||
* opensource.org/licenses/BSD-3-Clause
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@@ -40,12 +39,10 @@ extern "C" {
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Exported_Types JPEG Exported Types
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_Configuration_Structure_definition JPEG Configuration for encoding Structure definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG encoding configuration Structure definition
|
||||
* @{
|
||||
*/
|
||||
@@ -69,7 +66,6 @@ typedef struct
|
||||
*/
|
||||
|
||||
/** @defgroup HAL_JPEG_state_structure_definition HAL JPEG state structure definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief HAL JPEG State structure definition
|
||||
* @{
|
||||
*/
|
||||
@@ -90,7 +86,6 @@ typedef enum
|
||||
|
||||
|
||||
/** @defgroup JPEG_handle_Structure_definition JPEG handle Structure definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG handle Structure definition
|
||||
* @{
|
||||
*/
|
||||
@@ -168,7 +163,6 @@ typedef struct
|
||||
|
||||
#if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1)
|
||||
/** @defgroup HAL_JPEG_Callback_ID_enumeration_definition HAL JPEG Callback ID enumeration definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief HAL JPEG Callback ID enumeration definition
|
||||
* @{
|
||||
*/
|
||||
@@ -187,7 +181,6 @@ typedef enum
|
||||
*/
|
||||
|
||||
/** @defgroup HAL_JPEG_Callback_pointer_definition HAL JPEG Callback pointer definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief HAL JPEG Callback pointer definition
|
||||
* @{
|
||||
*/
|
||||
@@ -211,12 +204,10 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
|
||||
/** @defgroup JPEG_Exported_Constants JPEG Exported Constants
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_Error_Code_definition JPEG Error Code definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Error Code definition
|
||||
* @{
|
||||
*/
|
||||
@@ -234,7 +225,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_Quantization_Table_Size JPEG Quantization Table Size
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Quantization Table Size
|
||||
* @{
|
||||
*/
|
||||
@@ -245,7 +235,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
|
||||
|
||||
/** @defgroup JPEG_ColorSpace JPEG ColorSpace
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Color Space
|
||||
* @{
|
||||
*/
|
||||
@@ -260,7 +249,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
|
||||
|
||||
/** @defgroup JPEG_ChromaSubsampling JPEG Chrominance Sampling
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Chrominance Sampling
|
||||
* @{
|
||||
*/
|
||||
@@ -273,7 +261,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_ImageQuality JPEG Image Quality
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Min and Max Image Quality
|
||||
* @{
|
||||
*/
|
||||
@@ -285,7 +272,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_Interrupt_configuration_definition JPEG Interrupt configuration definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Interrupt definition
|
||||
* @{
|
||||
*/
|
||||
@@ -300,7 +286,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_Flag_definition JPEG Flag definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG Flags definition
|
||||
* @{
|
||||
*/
|
||||
@@ -318,7 +303,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*/
|
||||
|
||||
/** @defgroup JPEG_PROCESS_PAUSE_RESUME_definition JPEG Process Pause Resume definition
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @brief JPEG process pause, resume definition
|
||||
* @{
|
||||
*/
|
||||
@@ -335,7 +319,6 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
|
||||
/** @defgroup JPEG_Exported_Macros JPEG Exported Macros
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -415,7 +398,7 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
* @arg JPEG_IT_EOC : End of Conversion Interrupt
|
||||
* @arg JPEG_IT_HPD : Header Parsing Done Interrupt
|
||||
*
|
||||
* @retval No retrun
|
||||
* @retval No return
|
||||
*/
|
||||
#define __HAL_JPEG_ENABLE_IT(__HANDLE__,__INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__) )
|
||||
|
||||
@@ -433,7 +416,7 @@ typedef void (*pJPEG_DataReadyCallbackTypeDef)(JPEG_HandleTypeDef *hjpeg, uint8
|
||||
*
|
||||
* @note To disable an IT we must use MODIFY_REG macro to avoid writing "1" to the FIFO flush bits
|
||||
* located in the same IT enable register (CR register).
|
||||
* @retval No retrun
|
||||
* @retval No return
|
||||
*/
|
||||
#define __HAL_JPEG_DISABLE_IT(__HANDLE__,__INTERRUPT__) MODIFY_REG((__HANDLE__)->Instance->CR, (__INTERRUPT__), 0UL)
|
||||
|
||||
@@ -577,7 +560,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private types -------------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Types JPEG Private Types
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -587,7 +569,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private defines -----------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Defines JPEG Private Defines
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -597,7 +578,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Variables JPEG Private Variables
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -607,7 +587,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private constants ---------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Constants JPEG Private Constants
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -617,7 +596,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private macros ------------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Macros JPEG Private Macros
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -641,7 +619,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private functions prototypes ----------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Functions_Prototypes JPEG Private Functions Prototypes
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -651,7 +628,6 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
/** @defgroup JPEG_Private_Functions JPEG Private Functions
|
||||
* @ingroup RTEMSBSPsARMSTM32H7
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -675,4 +651,3 @@ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg);
|
||||
|
||||
#endif /* STM32H7xx_HAL_JPEG_H */
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
|
||||
Reference in New Issue
Block a user