HAL_Timer_Platform.h 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2012-2019 UCloud. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #ifndef C_SDK_HAL_TIMER_PLATFORM_H_
  16. #define C_SDK_HAL_TIMER_PLATFORM_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <stdio.h>
  21. #include <rtthread.h>
  22. /**
  23. * definition of the Timer struct. Platform specific
  24. */
  25. struct Timer {
  26. rt_tick_t end_time;
  27. };
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif //C_SDK_HAL_TIMER_PLATFORM_H_