mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 16:53:30 +08:00
code format
This commit is contained in:
parent
2b50fbafe2
commit
a281ee9874
@ -343,7 +343,7 @@ static rt_err_t timer_ctrl(rt_hwtimer_t *timer, rt_uint32_t cmd, void *arg)
|
|||||||
if (tim->Instance == TIM15 || tim->Instance == TIM16 || tim->Instance == TIM17)
|
if (tim->Instance == TIM15 || tim->Instance == TIM16 || tim->Instance == TIM17)
|
||||||
#elif defined(SOC_SERIES_STM32WB)
|
#elif defined(SOC_SERIES_STM32WB)
|
||||||
if (tim->Instance == TIM16 || tim->Instance == TIM17)
|
if (tim->Instance == TIM16 || tim->Instance == TIM17)
|
||||||
#elif defined(SOC_SERIES_STM32MP1)
|
#elif defined(SOC_SERIES_STM32MP1)
|
||||||
if(tim->Instance == TIM14 || tim->Instance == TIM16 || tim->Instance == TIM17)
|
if(tim->Instance == TIM14 || tim->Instance == TIM16 || tim->Instance == TIM17)
|
||||||
#elif defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32G0)
|
#elif defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32G0)
|
||||||
if (0)
|
if (0)
|
||||||
|
@ -70,7 +70,7 @@ typedef struct rt_hwtimer_device
|
|||||||
|
|
||||||
rt_int32_t freq; /* counting frequency set by the user */
|
rt_int32_t freq; /* counting frequency set by the user */
|
||||||
rt_int32_t overflow; /* timer overflows */
|
rt_int32_t overflow; /* timer overflows */
|
||||||
float period_sec;
|
float period_sec;
|
||||||
rt_int32_t cycles; /* how many times will generate a timeout event after overflow */
|
rt_int32_t cycles; /* how many times will generate a timeout event after overflow */
|
||||||
rt_int32_t reload; /* reload cycles(using in period mode) */
|
rt_int32_t reload; /* reload cycles(using in period mode) */
|
||||||
rt_hwtimer_mode_t mode; /* timing mode(oneshot/period) */
|
rt_hwtimer_mode_t mode; /* timing mode(oneshot/period) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user