|
@@ -17,6 +17,8 @@
|
|
#define LOG_TAG "drv.pwm"
|
|
#define LOG_TAG "drv.pwm"
|
|
#include <drv_log.h>
|
|
#include <drv_log.h>
|
|
|
|
|
|
|
|
+#define ITEM_NUM(items) sizeof(items) / sizeof(items[0])
|
|
|
|
+
|
|
void ch32_tim_clock_init(TIM_TypeDef* timx)
|
|
void ch32_tim_clock_init(TIM_TypeDef* timx)
|
|
{
|
|
{
|
|
#ifdef BSP_USING_TIM1_PWM
|
|
#ifdef BSP_USING_TIM1_PWM
|