The shim files should be part of the Zephyr module directory within Zephyr, as they are coupled with the module implementation which os OS agnostic. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
26 lines
535 B
C
26 lines
535 B
C
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @brief Header containing timer specific declarations for the
|
|
* Zephyr OS layer of the Wi-Fi driver.
|
|
*/
|
|
#ifndef __TIMER_H__
|
|
#define __TIMER_H__
|
|
|
|
struct timer_list {
|
|
void (*function)(unsigned long data);
|
|
unsigned long data;
|
|
struct k_work_delayable work;
|
|
};
|
|
|
|
void init_timer(struct timer_list *timer);
|
|
|
|
void mod_timer(struct timer_list *timer, int msec);
|
|
|
|
void del_timer_sync(struct timer_list *timer);
|
|
|
|
#endif /* __TIMER_H__ */
|