pando_machine.c 809 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*******************************************************
  2. * File name: pando_machine.c
  3. * Author: LIJIAN
  4. * Versions: 0.1
  5. * Description: APIs related to different machine platform,
  6. Such as basic IO operation and some common functions.
  7. * History:
  8. * 1.Date:
  9. * Author:
  10. * Modification:
  11. *********************************************************/
  12. #include <time.h>
  13. #include "pando_machine.h"
  14. #include "../platform/include/pando_types.h"
  15. #ifdef ESP8266_PLANTFORM
  16. uint64_t FUNCTION_ATTRIBUTE pd_get_timestamp()
  17. {
  18. uint64_t time_now;
  19. //time_now = pando_get_system_time();
  20. return time_now;
  21. }
  22. #else
  23. uint64_t FUNCTION_ATTRIBUTE pd_get_timestamp()
  24. {
  25. /*
  26. struct timeval now;
  27. gettimeofday(&now, NULL);
  28. return (now.tv_sec * 1000 + now.tv_usec/1000);
  29. */
  30. return 0;
  31. }
  32. #endif