Skip to content

Commit

Permalink
Updated drv/stm32cube to latest STM32Cube FW F4 V1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux committed Oct 2, 2016
1 parent b664195 commit e1705c0
Show file tree
Hide file tree
Showing 141 changed files with 81,149 additions and 33,555 deletions.
3,123 changes: 3,123 additions & 0 deletions drv/stm32cube/inc/Legacy/stm32_hal_legacy.h

Large diffs are not rendered by default.

225 changes: 148 additions & 77 deletions drv/stm32cube/inc/stm32f4xx_hal.h

Large diffs are not rendered by default.

819 changes: 467 additions & 352 deletions drv/stm32cube/inc/stm32f4xx_hal_adc.h

Large diffs are not rendered by default.

343 changes: 234 additions & 109 deletions drv/stm32cube/inc/stm32f4xx_hal_adc_ex.h

Large diffs are not rendered by default.

574 changes: 285 additions & 289 deletions drv/stm32cube/inc/stm32f4xx_hal_can.h

Large diffs are not rendered by default.

747 changes: 747 additions & 0 deletions drv/stm32cube/inc/stm32f4xx_hal_cec.h

Large diffs are not rendered by default.

388 changes: 346 additions & 42 deletions drv/stm32cube/inc/stm32f4xx_hal_cortex.h

Large diffs are not rendered by default.

148 changes: 126 additions & 22 deletions drv/stm32cube/inc/stm32f4xx_hal_crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
******************************************************************************
* @file stm32f4xx_hal_crc.h
* @author MCD Application Team
* @version V1.1.0
* @date 19-June-2014
* @version V1.5.1
* @date 01-July-2016
* @brief Header file of CRC HAL module.
******************************************************************************
* @attention
*
* <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -50,27 +50,34 @@
* @{
*/

/** @addtogroup CRC
/** @defgroup CRC CRC
* @brief CRC HAL module driver
* @{
*/
*/

/* Exported types ------------------------------------------------------------*/
/** @defgroup CRC_Exported_Types CRC Exported Types
* @{
*/

/**
* @brief CRC HAL State Structure definition
*/
/** @defgroup CRC_Exported_Types_Group1 CRC State Structure definition
* @{
*/
typedef enum
{
HAL_CRC_STATE_RESET = 0x00, /*!< CRC not yet initialized or disabled */
HAL_CRC_STATE_READY = 0x01, /*!< CRC initialized and ready for use */
HAL_CRC_STATE_BUSY = 0x02, /*!< CRC internal process is ongoing */
HAL_CRC_STATE_TIMEOUT = 0x03, /*!< CRC timeout state */
HAL_CRC_STATE_ERROR = 0x04 /*!< CRC error state */
HAL_CRC_STATE_RESET = 0x00U, /*!< CRC not yet initialized or disabled */
HAL_CRC_STATE_READY = 0x01U, /*!< CRC initialized and ready for use */
HAL_CRC_STATE_BUSY = 0x02U, /*!< CRC internal process is ongoing */
HAL_CRC_STATE_TIMEOUT = 0x03U, /*!< CRC timeout state */
HAL_CRC_STATE_ERROR = 0x04U /*!< CRC error state */

}HAL_CRC_StateTypeDef;

/**
* @brief CRC handle Structure definition
* @}
*/

/** @defgroup CRC_Exported_Types_Group2 CRC Handle Structure definition
* @{
*/
typedef struct
{
Expand All @@ -81,11 +88,21 @@ typedef struct
__IO HAL_CRC_StateTypeDef State; /*!< CRC communication state */

}CRC_HandleTypeDef;
/**
* @}
*/

/**
* @}
*/

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup CRC_Exported_Macros CRC Exported Macros
* @{
*/

/** @brief Reset CRC handle state
/** @brief Resets CRC handle state
* @param __HANDLE__: CRC handle
* @retval None
*/
Expand All @@ -101,41 +118,128 @@ typedef struct
/**
* @brief Stores a 8-bit data in the Independent Data(ID) register.
* @param __HANDLE__: CRC handle
* @param __VALUE: 8-bit value to be stored in the ID register
* @param __VALUE__: 8-bit value to be stored in the ID register
* @retval None
*/
#define __HAL_CRC_SET_IDR(__HANDLE__, __VALUE__) (MODIFY_REG((__HANDLE__)->Instance->IDR, CRC_IDR_IDR, (__VALUE__))
#define __HAL_CRC_SET_IDR(__HANDLE__, __VALUE__) (WRITE_REG((__HANDLE__)->Instance->IDR, (__VALUE__)))

/**
* @brief Returns the 8-bit data stored in the Independent Data(ID) register.
* @param __HANDLE__: CRC handle
* @retval 8-bit value of the ID register
*/
#define __HAL_CRC_GET_IDR(__HANDLE__) (((__HANDLE__)->Instance->IDR) & CRC_IDR_IDR)
/**
* @}
*/

/* Exported functions --------------------------------------------------------*/
/** @defgroup CRC_Exported_Functions CRC Exported Functions
* @{
*/

/* Initialization/de-initialization functions **********************************/
/** @defgroup CRC_Exported_Functions_Group1 Initialization and de-initialization functions
* @{
*/
HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc);
HAL_StatusTypeDef HAL_CRC_DeInit (CRC_HandleTypeDef *hcrc);
void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc);
void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc);
/**
* @}
*/

/* Peripheral Control functions ************************************************/
/** @defgroup CRC_Exported_Functions_Group2 Peripheral Control functions
* @{
*/
uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
/**
* @}
*/

/* Peripheral State functions **************************************************/
/** @defgroup CRC_Exported_Functions_Group3 Peripheral State functions
* @{
*/
HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc);
/**
* @}
*/

/**
* @}
*/
/* Private types -------------------------------------------------------------*/
/** @defgroup CRC_Private_Types CRC Private Types
* @{
*/

/**
* @}
*/

/* Private defines -----------------------------------------------------------*/
/** @defgroup CRC_Private_Defines CRC Private Defines
* @{
*/

/**
* @}
*/

/* Private variables ---------------------------------------------------------*/
/** @defgroup CRC_Private_Variables CRC Private Variables
* @{
*/

/**
* @}
*/

/* Private constants ---------------------------------------------------------*/
/** @defgroup CRC_Private_Constants CRC Private Constants
* @{
*/

/**
* @}
*/

/* Private macros ------------------------------------------------------------*/
/** @defgroup CRC_Private_Macros CRC Private Macros
* @{
*/

/**
* @}
*/


/* Private functions prototypes ----------------------------------------------*/
/** @defgroup CRC_Private_Functions_Prototypes CRC Private Functions Prototypes
* @{
*/

/**
* @}
*/

/* Private functions ---------------------------------------------------------*/
/** @defgroup CRC_Private_Functions CRC Private Functions
* @{
*/

/**
* @}
*/

/**
* @}
*/

/**
* @}
*/

#ifdef __cplusplus
}
#endif
Expand Down
Loading

0 comments on commit e1705c0

Please sign in to comment.