Use AzureRTOS ThreadX
This commit is contained in:
@ -106,9 +106,6 @@ typedef struct __PSSI_HandleTypeDef
|
||||
*/
|
||||
typedef void (*pPSSI_CallbackTypeDef)(PSSI_HandleTypeDef *hpssi); /*!< Pointer to a PSSI common callback function */
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
/**
|
||||
* @brief HAL PSSI Callback ID enumeration definition
|
||||
*/
|
||||
@ -124,6 +121,11 @@ typedef enum
|
||||
|
||||
} HAL_PSSI_CallbackIDTypeDef;
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/** @defgroup PSSI_Exported_Constants PSSI Exported Constants
|
||||
* @{
|
||||
@ -174,7 +176,7 @@ typedef enum
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup PSSI_ControlSignal Configuration
|
||||
/** @defgroup ControlSignal_Configuration ControlSignal Configuration
|
||||
* @{
|
||||
*/
|
||||
#define HAL_PSSI_DE_RDY_DISABLE (0x0U << PSSI_CR_DERDYCFG_Pos) /*!< Neither DE nor RDY are enabled */
|
||||
@ -191,7 +193,7 @@ typedef enum
|
||||
*/
|
||||
|
||||
|
||||
/** @defgroup PSSI_Data_Enable_Polarity Data Enable Polarity
|
||||
/** @defgroup Data_Enable_Polarity Data Enable Polarity
|
||||
* @{
|
||||
*/
|
||||
#define HAL_PSSI_DEPOL_ACTIVE_LOW 0x0U /*!< Active Low */
|
||||
@ -199,7 +201,7 @@ typedef enum
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
/** @defgroup PSSI_Reday_Polarity Reday Polarity
|
||||
/** @defgroup Reday_Polarity Reday Polarity
|
||||
* @{
|
||||
*/
|
||||
#define HAL_PSSI_RDYPOL_ACTIVE_LOW 0x0U /*!< Active Low */
|
||||
@ -208,7 +210,7 @@ typedef enum
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup PSSI_Clock_Polarity Clock Polarity
|
||||
/** @defgroup Clock_Polarity Clock Polarity
|
||||
* @{
|
||||
*/
|
||||
#define HAL_PSSI_FALLING_EDGE 0x0U /*!< Fallling Edge */
|
||||
@ -231,7 +233,7 @@ typedef enum
|
||||
#define PSSI_CR_OUTEN_OUTPUT PSSI_CR_OUTEN /*!< Output Mode */
|
||||
|
||||
#define PSSI_CR_DMA_ENABLE PSSI_CR_DMAEN /*!< DMA Mode Enable */
|
||||
#define PSSI_CR_DMA_DISABLE (~PSSI_CR_DMAEN) /*!< DMA Mode Disable */
|
||||
#define PSSI_CR_DMA_DISABLE (~PSSI_CR_DMAEN) /*!< DMA Mode Disable*/
|
||||
|
||||
#define PSSI_CR_16BITS PSSI_CR_EDM /*!< 16 Lines Mode */
|
||||
#define PSSI_CR_8BITS (~PSSI_CR_EDM) /*!< 8 Lines Mode */
|
||||
@ -357,6 +359,7 @@ typedef enum
|
||||
*/
|
||||
#define HAL_PSSI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IER & (__INTERRUPT__))
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check whether the PSSI Control signal is valid.
|
||||
* @param __CONTROL__ Control signals configuration
|
||||
@ -371,6 +374,9 @@ typedef enum
|
||||
((__CONTROL__) == HAL_PSSI_RDY_MAP_ENABLE ) || \
|
||||
((__CONTROL__) == HAL_PSSI_DE_MAP_ENABLE ) || \
|
||||
((__CONTROL__) == HAL_PSSI_MAP_DE_BIDIR_ENABLE ))
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check whether the PSSI Bus Width is valid.
|
||||
* @param __BUSWIDTH__ PSSI Bush width
|
||||
@ -381,6 +387,7 @@ typedef enum
|
||||
((__BUSWIDTH__) == HAL_PSSI_16LINES ))
|
||||
|
||||
/**
|
||||
|
||||
* @brief Check whether the PSSI Clock Polarity is valid.
|
||||
* @param __CLOCKPOL__ PSSI Clock Polarity
|
||||
* @retval Valid or not.
|
||||
@ -388,6 +395,8 @@ typedef enum
|
||||
|
||||
#define IS_PSSI_CLOCK_POLARITY(__CLOCKPOL__) (((__CLOCKPOL__) == HAL_PSSI_FALLING_EDGE ) || \
|
||||
((__CLOCKPOL__) == HAL_PSSI_RISING_EDGE ))
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check whether the PSSI Data Enable Polarity is valid.
|
||||
* @param __DEPOL__ PSSI DE Polarity
|
||||
@ -396,6 +405,7 @@ typedef enum
|
||||
|
||||
#define IS_PSSI_DE_POLARITY(__DEPOL__) (((__DEPOL__) == HAL_PSSI_DEPOL_ACTIVE_LOW ) || \
|
||||
((__DEPOL__) == HAL_PSSI_DEPOL_ACTIVE_HIGH ))
|
||||
|
||||
/**
|
||||
* @brief Check whether the PSSI Ready Polarity is valid.
|
||||
* @param __RDYPOL__ PSSI RDY Polarity
|
||||
@ -403,18 +413,18 @@ typedef enum
|
||||
*/
|
||||
|
||||
#define IS_PSSI_RDY_POLARITY(__RDYPOL__) (((__RDYPOL__) == HAL_PSSI_RDYPOL_ACTIVE_LOW ) || \
|
||||
((__RDYPOL__) == HAL_PSSI_RDYPOL_ACTIVE_HIGH ))
|
||||
((__RDYPOL__) == HAL_PSSI_RDYPOL_ACTIVE_HIGH ))
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/* Exported functions --------------------------------------------------------*/
|
||||
/** @addtogroup PSSI_Exported_Functions
|
||||
/** @addtogroup PSSI_Exported_Functions PSSI Exported Functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup PSSI_Exported_Functions_Group1
|
||||
/** @addtogroup PSSI_Exported_Functions_Group1 Initialization and de-initialization functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
@ -425,7 +435,8 @@ void HAL_PSSI_MspInit(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_MspDeInit(PSSI_HandleTypeDef *hpssi);
|
||||
/* Callbacks Register/UnRegister functions ***********************************/
|
||||
|
||||
HAL_StatusTypeDef HAL_PSSI_RegisterCallback(PSSI_HandleTypeDef *hpssi, HAL_PSSI_CallbackIDTypeDef CallbackID, pPSSI_CallbackTypeDef pCallback);
|
||||
HAL_StatusTypeDef HAL_PSSI_RegisterCallback(PSSI_HandleTypeDef *hpssi, HAL_PSSI_CallbackIDTypeDef CallbackID,
|
||||
pPSSI_CallbackTypeDef pCallback);
|
||||
HAL_StatusTypeDef HAL_PSSI_UnRegisterCallback(PSSI_HandleTypeDef *hpssi, HAL_PSSI_CallbackIDTypeDef CallbackID);
|
||||
|
||||
|
||||
@ -433,7 +444,8 @@ HAL_StatusTypeDef HAL_PSSI_UnRegisterCallback(PSSI_HandleTypeDef *hpssi, HAL_PSS
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup PSSI_Exported_Functions_Group2
|
||||
|
||||
/** @addtogroup PSSI_Exported_Functions_Group2 Input and Output operation functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
@ -443,27 +455,12 @@ HAL_StatusTypeDef HAL_PSSI_Receive(PSSI_HandleTypeDef *hpssi, uint8_t *pData, ui
|
||||
HAL_StatusTypeDef HAL_PSSI_Transmit_DMA(PSSI_HandleTypeDef *hpssi, uint32_t *pData, uint32_t Size);
|
||||
HAL_StatusTypeDef HAL_PSSI_Receive_DMA(PSSI_HandleTypeDef *hpssi, uint32_t *pData, uint32_t Size);
|
||||
HAL_StatusTypeDef HAL_PSSI_Abort_DMA(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_IRQHandler(PSSI_HandleTypeDef *hpssi);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup PSSI_Exported_Functions_Group3
|
||||
* @{
|
||||
*/
|
||||
|
||||
void HAL_PSSI_TxCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_RxCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_ErrorCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_AbortCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup PSSI_Exported_Functions_Group4
|
||||
/** @addtogroup PSSI_Exported_Functions_Group3 Peripheral State and Error functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
@ -475,6 +472,23 @@ uint32_t HAL_PSSI_GetError(PSSI_HandleTypeDef *hpssi);
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup PSSI_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks
|
||||
* @{
|
||||
*/
|
||||
|
||||
void HAL_PSSI_IRQHandler(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_TxCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_RxCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_ErrorCallback(PSSI_HandleTypeDef *hpssi);
|
||||
void HAL_PSSI_AbortCpltCallback(PSSI_HandleTypeDef *hpssi);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
@ -500,3 +514,4 @@ uint32_t HAL_PSSI_GetError(PSSI_HandleTypeDef *hpssi);
|
||||
#endif
|
||||
|
||||
#endif /* STM32H7xx_HAL_PSSI_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user