common.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /************************************************************************************************/
  2. /**
  3. * @file common.h
  4. * @author MCU Ecosystem Development Team
  5. * @brief COMMON头文件。
  6. *
  7. *
  8. **************************************************************************************************
  9. * @attention
  10. * Copyright (c) CEC Huada Electronic Design Co.,Ltd. All rights reserved.
  11. *
  12. **************************************************************************************************
  13. */
  14. /* 避免头文件重复引用 */
  15. #ifndef COMMON_H
  16. #define COMMON_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /*------------------------------------------includes--------------------------------------------*/
  21. #include "ciu32f003_std.h"
  22. #define ENABLE_LOWPOWER 1
  23. /*-------------------------------------------define---------------------------------------------*/
  24. /* LED IO相关定义 */
  25. #define LED_GPIO_PORT GPIOA
  26. #define LED_PIN GPIO_PIN_5
  27. /*-------------------------------------------functions------------------------------------------*/
  28. void system_clock_config(void);
  29. void gpio_init(void);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif /* COMMON_H */