platform.h 920 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef CX_ZIVUOS_PLATFORM_H_INCLUDED
  2. #define CX_ZIVUOS_PLATFORM_H_INCLUDED
  3. /**
  4. * @brief That initialize plarform for ZivuOS.
  5. *
  6. * That do initialization of the platform required for ZivuOS to property
  7. * work. A lot of initialization process touches SysTick, which is used to
  8. * generate software timers.
  9. */
  10. void zv_platform_init(void);
  11. /**
  12. * That return time of the system in miliseconds. That is 32 or 64 bit
  13. * number, used in software timers. It is low-level ZivuOS function,
  14. * use API functions to get time of the system.
  15. *
  16. * @return Time of the system in miliseconds.
  17. */
  18. zv_time_t __zv_platform_get_time_ms(void);
  19. /**
  20. * That return time of the system in microseconds. That is 32 bit number
  21. * and it could return to zero after +/- 100 seconds. Use API functions
  22. * to generate small delays.
  23. *
  24. * @return Time of the system in microseconds.
  25. */
  26. zv_ticks_t __zv_platform_get_time_us(void);
  27. #endif