Skip to content

File syn_port_system.h

File List > port > syn_port_system.h

Go to the documentation of this file

#ifndef SYN_PORT_SYSTEM_H
#define SYN_PORT_SYSTEM_H

#include "../common/syn_compiler.h"
#include "../common/syn_defs.h"

#ifdef __cplusplus
extern "C" {
#endif

void syn_port_enter_critical(void);

void syn_port_exit_critical(void);

uint32_t syn_port_get_tick_ms(void);

void syn_port_delay_ms(uint32_t ms);

#if defined(SYN_USE_TICKLESS) && SYN_USE_TICKLESS

void syn_port_sleep_until(uint32_t wake_tick_ms);

#endif /* SYN_USE_TICKLESS */

SYN_NORETURN void syn_port_system_reset(void);

#ifdef __cplusplus
}
#endif

#endif /* SYN_PORT_SYSTEM_H */