pal.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * \copyright
  3. * Copyright (c) 2018, Infineon Technologies AG
  4. * All rights reserved.
  5. *
  6. * This software is provided with terms and conditions as specified in OPTIGA(TM) Trust X Evaluation Kit License Agreement.
  7. * \endcopyright
  8. *
  9. * \author Infineon AG
  10. *
  11. * \file
  12. *
  13. * \brief This file implements the prototype declarations of platform abstraction layer
  14. *
  15. * \addtogroup grPAL
  16. * @{
  17. */
  18. #ifndef _PAL_H_
  19. #define _PAL_H_
  20. /**********************************************************************************************************************
  21. * HEADER FILES
  22. *********************************************************************************************************************/
  23. #include <Datatypes.h>
  24. /**********************************************************************************************************************
  25. * pal.h
  26. *********************************************************************************************************************/
  27. /**********************************************************************************************************************
  28. * MACROS
  29. *********************************************************************************************************************/
  30. /// PAL API execution is successful
  31. #define PAL_STATUS_SUCCESS (0x0000)
  32. /// PAL API execution failed
  33. #define PAL_STATUS_FAILURE (0x0001)
  34. /// PAL I2C is busy
  35. #define PAL_STATUS_I2C_BUSY (0x0002)
  36. /**********************************************************************************************************************
  37. * ENUMS
  38. *********************************************************************************************************************/
  39. /**
  40. * \brief PAL return status.
  41. */
  42. typedef uint16_t pal_status_t;
  43. /**********************************************************************************************************************
  44. * API Prototypes
  45. *********************************************************************************************************************/
  46. #endif /* _PAL_H_ */
  47. /**
  48. * @}
  49. */