pwm_config.h 731 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2006-2021, 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. #ifndef PWM1_CONFIG
  18. #define PWM1_CONFIG \
  19. { \
  20. .tim_handle.Instance = TIM1, \
  21. .name = "pwm1", \
  22. .channel = 0 \
  23. }
  24. #endif /* PWM1_CONFIG */
  25. #endif /* BSP_USING_PWM1 */
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* __PWM_CONFIG_H__ */