/**
* @file         spv40xx_hal_def.h
* @brief        XXX
* @details      XXX
* @author       涂龙
* @date         2023-05-10 14:18
* @version      V0.0
* @copyright    Copyright (c) 2017-2023  SpaceTouch Inc.
*/
#ifndef _HAL_DEF_H_
#define _HAL_DEF_H_

#include "core_v5.h"

/**
  * @brief  HAL Status structures definition
  */
typedef enum
{
    HAL_OK       = 0x00U,
    HAL_ERROR    = 0x01U,
    HAL_BUSY     = 0x02U,
    HAL_TIMEOUT  = 0x03U
} HAL_StatusTypeDef;

/**
  * @brief  HAL Lock structures definition
  */
typedef enum
{
    HAL_UNLOCKED = 0x00U,
    HAL_LOCKED   = 0x01U
} HAL_LockTypeDef;

#if 0
    #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
    void assert_failed(uint8_t *file, uint32_t line);
#else
    #define assert_param(expr) ((void)0)
#endif

#endif /* SPV40_HAL_DEF_H_ */
