mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19395
19395: ztimer/ztimer64: uncrustify code r=miri64 a=miri64 Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
This commit is contained in:
commit
97e812704e
@ -430,7 +430,7 @@ bool ztimer_acquire(ztimer_clock_t *clock);
|
|||||||
#else
|
#else
|
||||||
static inline bool ztimer_acquire(ztimer_clock_t *clock)
|
static inline bool ztimer_acquire(ztimer_clock_t *clock)
|
||||||
{
|
{
|
||||||
(void) clock;
|
(void)clock;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -450,7 +450,7 @@ bool ztimer_release(ztimer_clock_t *clock);
|
|||||||
#else
|
#else
|
||||||
static inline bool ztimer_release(ztimer_clock_t *clock)
|
static inline bool ztimer_release(ztimer_clock_t *clock)
|
||||||
{
|
{
|
||||||
(void) clock;
|
(void)clock;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,12 +89,12 @@ typedef bool (*ztimer_periodic_callback_t)(void *);
|
|||||||
* @brief ztimer periodic structure
|
* @brief ztimer periodic structure
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
ztimer_t timer; /**< timer object used for this timer */
|
ztimer_t timer; /**< timer object used for this timer */
|
||||||
ztimer_clock_t *clock; /**< clock for this timer */
|
ztimer_clock_t *clock; /**< clock for this timer */
|
||||||
uint32_t interval; /**< interval of this timer */
|
uint32_t interval; /**< interval of this timer */
|
||||||
ztimer_now_t last; /**< last trigger time */
|
ztimer_now_t last; /**< last trigger time */
|
||||||
ztimer_periodic_callback_t callback; /**< called on each trigger */
|
ztimer_periodic_callback_t callback; /**< called on each trigger */
|
||||||
void *arg; /**< argument for callback */
|
void *arg; /**< argument for callback */
|
||||||
} ztimer_periodic_t;
|
} ztimer_periodic_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ void ztimer_convert_init(ztimer_convert_t *ztimer_convert,
|
|||||||
ztimer_convert_t tmp = {
|
ztimer_convert_t tmp = {
|
||||||
.lower = lower,
|
.lower = lower,
|
||||||
.lower_entry = {
|
.lower_entry = {
|
||||||
.callback = (void (*)(void *))ztimer_handler,
|
.callback = (void (*)(void *)) ztimer_handler,
|
||||||
.arg = ztimer_convert,
|
.arg = ztimer_convert,
|
||||||
},
|
},
|
||||||
.super.max_value = max_value,
|
.super.max_value = max_value,
|
||||||
|
@ -101,7 +101,7 @@ void ztimer_convert_frac_init(ztimer_convert_frac_t *self,
|
|||||||
.super.super = { .ops = &ztimer_convert_frac_ops, },
|
.super.super = { .ops = &ztimer_convert_frac_ops, },
|
||||||
.super.lower = lower,
|
.super.lower = lower,
|
||||||
.super.lower_entry =
|
.super.lower_entry =
|
||||||
{ .callback = (void (*)(void *))ztimer_handler, .arg = &self->super, },
|
{ .callback = (void (*)(void *)) ztimer_handler, .arg = &self->super, },
|
||||||
};
|
};
|
||||||
|
|
||||||
ztimer_convert_frac_compute_scale(self, freq_self, freq_lower);
|
ztimer_convert_frac_compute_scale(self, freq_self, freq_lower);
|
||||||
|
Loading…
Reference in New Issue
Block a user