未验证 提交 6618293d 编写于 作者: Y Yaochenger 提交者: GitHub

[bsp][ch32]pwm避免警告 (#6818)

上级 79b93c21
......@@ -17,6 +17,8 @@
#define LOG_TAG "drv.pwm"
#include <drv_log.h>
#define ITEM_NUM(items) sizeof(items) / sizeof(items[0])
void ch32_tim_clock_init(TIM_TypeDef* timx)
{
#ifdef BSP_USING_TIM1_PWM
......
......@@ -18,10 +18,6 @@
#include <drivers/hwtimer.h>
#include <board.h>
#ifndef ITEM_NUM
#define ITEM_NUM(items) sizeof(items) / sizeof(items[0])
#endif
#define MAX_COUNTER 65535
#define MIN_COUNTER 2
#define MIN_PULSE 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册