NTURT Zephyr v0.0.1
NTURT common library for Zephyr RTOS
Loading...
Searching...
No Matches
sys.h File Reference

Basic system support. More...

#include <time.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/iterable_sections.h>
+ Include dependency graph for sys.h:

Data Structures

struct  sys_shutdown_callback
 Shutdown callback. More...
 

Macros

#define SYS_SHUTDOWN_CALLBACK_DEFINE_NAMED(_name, _handler, _user_data, _priority)
 Same as SYS_SHUTDOWN_CALLBACK_DEFINE, but with a custom name for the callback.
 
#define SYS_SHUTDOWN_CALLBACK_DEFINE(handler, user_data, priority)
 Define a shutdown callback.
 

Typedefs

typedef void(* sys_shutdown_handler_t) (void *user_data)
 Shutdown handler type.
 

Functions

int sys_work_submit (struct k_work *work)
 Submit a work item to the system work queue.
 
int sys_work_schedule (struct k_work_delayable *dwork, k_timeout_t delay)
 Submit an idle work item to the system work queue after a delay.
 
int sys_work_reschedule (struct k_work_delayable *dwork, k_timeout_t delay)
 Reschedule a work item to the system work queue after a delay.
 
void sys_shutdown ()
 Shutdown the system.
 
void sys_reset ()
 Reset the system.
 
int sys_set_time (time_t time)
 Set system time.
 

Detailed Description

Basic system support.

Author
quantumspawner
Version
0.0.1
Date
2025-02-25