pal_os_event.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 pal os event
  14. *
  15. * \addtogroup grPAL
  16. * @{
  17. */
  18. #ifndef _PAL_OS_EVENT_H_
  19. #define _PAL_OS_EVENT_H_
  20. /**********************************************************************************************************************
  21. * HEADER FILES
  22. *********************************************************************************************************************/
  23. #include "Datatypes.h"
  24. /**********************************************************************************************************************
  25. * MACROS
  26. *********************************************************************************************************************/
  27. /**********************************************************************************************************************
  28. * ENUMS
  29. *********************************************************************************************************************/
  30. /**********************************************************************************************************************
  31. * PAL extern definitions
  32. *********************************************************************************************************************/
  33. /**
  34. * @brief typedef for Callback function when timer elapses.
  35. */
  36. typedef void (*register_callback)(void*);
  37. /**
  38. * \brief Initializes the OS event PAL.
  39. */
  40. void pal_os_event_init(void);
  41. /**
  42. * @brief Callback registration function to trigger once when timer expires.
  43. */
  44. void pal_os_event_register_callback_oneshot(register_callback callback, void* callback_args, uint32_t time_us);
  45. #endif //_PAL_OS_EVENT_H_
  46. /**
  47. * @}
  48. */