[bsp][ch32]pwm避免警告 (#6818)
This commit is contained in:
parent
79b93c2199
commit
6618293dc5
|
@ -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
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
#include <drivers/hwtimer.h>
|
#include <drivers/hwtimer.h>
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
|
|
||||||
#ifndef ITEM_NUM
|
|
||||||
#define ITEM_NUM(items) sizeof(items) / sizeof(items[0])
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_COUNTER 65535
|
#define MAX_COUNTER 65535
|
||||||
#define MIN_COUNTER 2
|
#define MIN_COUNTER 2
|
||||||
#define MIN_PULSE 2
|
#define MIN_PULSE 2
|
||||||
|
|
Loading…
Reference in New Issue