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

This commit is contained in:
Yaochenger 2023-01-06 12:10:46 +08:00 committed by GitHub
parent 79b93c2199
commit 6618293dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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