mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Fix build issues
This commit is contained in:
@@ -32,7 +32,15 @@ extern "C" {
|
||||
#include <stddef.h>
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
#ifndef USE_HAL_TIM_REGISTER_CALLBACKS
|
||||
#define USE_HAL_TIM_REGISTER_CALLBACKS 0
|
||||
#endif
|
||||
#ifndef USE_HAL_I2C_REGISTER_CALLBACKS
|
||||
#define USE_HAL_I2C_REGISTER_CALLBACKS 0
|
||||
#endif
|
||||
#ifndef USE_HAL_ADC_REGISTER_CALLBACKS
|
||||
#define USE_HAL_ADC_REGISTER_CALLBACKS 0
|
||||
#endif
|
||||
/**
|
||||
* @brief HAL Status structures definition
|
||||
*/
|
||||
|
||||
@@ -219,7 +219,9 @@ typedef struct
|
||||
__IO uint32_t MemaddSize; /*!< I2C Target memory address size */
|
||||
|
||||
__IO uint32_t EventCount; /*!< I2C Event counter */
|
||||
|
||||
#ifndef USE_HAL_I2C_REGISTER_CALLBACKS
|
||||
#define USE_HAL_I2C_REGISTER_CALLBACKS 0
|
||||
#endif
|
||||
#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1)
|
||||
void (*MasterTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Tx Transfer completed callback */
|
||||
void (*MasterRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Rx Transfer completed callback */
|
||||
|
||||
@@ -1948,6 +1948,7 @@ void HAL_TIM_TriggerHalfCpltCallback(TIM_HandleTypeDef *htim);
|
||||
void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim);
|
||||
|
||||
/* Callbacks Register/UnRegister functions ***********************************/
|
||||
|
||||
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
||||
HAL_StatusTypeDef HAL_TIM_RegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, pTIM_CallbackTypeDef pCallback);
|
||||
HAL_StatusTypeDef HAL_TIM_UnRegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID);
|
||||
|
||||
Reference in New Issue
Block a user