pwm_config.h 686 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-12-13 zylx first version
  9. */
  10. #ifndef __PWM_CONFIG_H__
  11. #define __PWM_CONFIG_H__
  12. #include <rtthread.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifdef BSP_USING_PWM1
  17. #define PWM1_CONFIG \
  18. { \
  19. .tim_handle.Instance = TIM1, \
  20. .name = "pwm1", \
  21. .channel = RT_NULL \
  22. }
  23. #endif /* BSP_USING_PWM1 */
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* __PWM_CONFIG_H__ */