zephyr/modules/nrf_wifi/timer.h
Chaitanya Tata da26d02d63 nrf_wifi: Move shim files from driver to module
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>
2024-11-25 17:43:34 +01:00

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__ */