hal_system.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * BSD 2-Clause License
  3. * Copyright (c) 2022, LiteEMF
  4. * All rights reserved.
  5. * This software component is licensed by LiteEMF under BSD 2-Clause license,
  6. * the "License"; You may not use this file except in compliance with the
  7. * License. You may obtain a copy of the License at:
  8. * opensource.org/licenses/BSD-2-Clause
  9. *
  10. */
  11. #ifndef _hal_system_h
  12. #define _hal_system_h
  13. #include "emf_typedef.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /******************************************************************************************************
  18. ** Defined
  19. *******************************************************************************************************/
  20. #ifndef HAL_SYS_FREQ //系统时钟
  21. #define HAL_SYS_FREQ (72 * 1000000L)
  22. #endif
  23. #ifndef API_ENTER_CRITICAL
  24. #define API_ENTER_CRITICAL()
  25. #endif
  26. #ifndef API_EXIT_CRITICAL
  27. #define API_EXIT_CRITICAL()
  28. #endif
  29. /******************************************************************************************************
  30. ** Parameters
  31. *******************************************************************************************************/
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif