1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
19395: ztimer/ztimer64: uncrustify code r=miri64 a=miri64



Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
This commit is contained in:
bors[bot] 2023-03-15 15:25:21 +00:00 committed by GitHub
commit 97e812704e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -430,7 +430,7 @@ bool ztimer_acquire(ztimer_clock_t *clock);
#else
static inline bool ztimer_acquire(ztimer_clock_t *clock)
{
(void) clock;
(void)clock;
return false;
}
#endif
@ -450,7 +450,7 @@ bool ztimer_release(ztimer_clock_t *clock);
#else
static inline bool ztimer_release(ztimer_clock_t *clock)
{
(void) clock;
(void)clock;
return false;
}
#endif

View File

@ -89,12 +89,12 @@ typedef bool (*ztimer_periodic_callback_t)(void *);
* @brief ztimer periodic structure
*/
typedef struct {
ztimer_t timer; /**< timer object used for this timer */
ztimer_clock_t *clock; /**< clock for this timer */
uint32_t interval; /**< interval of this timer */
ztimer_now_t last; /**< last trigger time */
ztimer_periodic_callback_t callback; /**< called on each trigger */
void *arg; /**< argument for callback */
ztimer_t timer; /**< timer object used for this timer */
ztimer_clock_t *clock; /**< clock for this timer */
uint32_t interval; /**< interval of this timer */
ztimer_now_t last; /**< last trigger time */
ztimer_periodic_callback_t callback; /**< called on each trigger */
void *arg; /**< argument for callback */
} ztimer_periodic_t;
/**

View File

@ -56,7 +56,7 @@ void ztimer_convert_init(ztimer_convert_t *ztimer_convert,
ztimer_convert_t tmp = {
.lower = lower,
.lower_entry = {
.callback = (void (*)(void *))ztimer_handler,
.callback = (void (*)(void *)) ztimer_handler,
.arg = ztimer_convert,
},
.super.max_value = max_value,

View File

@ -101,7 +101,7 @@ void ztimer_convert_frac_init(ztimer_convert_frac_t *self,
.super.super = { .ops = &ztimer_convert_frac_ops, },
.super.lower = lower,
.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);