2016-11-17 20:36:25 +01:00
|
|
|
#ifndef __OS_FUNCTIONS_H_
|
|
|
|
#define __OS_FUNCTIONS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-02-03 13:09:27 +01:00
|
|
|
#define OS_MUTEX_SIZE 44
|
2016-11-17 20:36:25 +01:00
|
|
|
|
2016-11-28 18:14:40 +01:00
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! Mutex functions
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2021-09-24 19:38:34 +02:00
|
|
|
extern void OSInitMutex(void *mutex);
|
|
|
|
|
|
|
|
extern void OSLockMutex(void *mutex);
|
|
|
|
|
|
|
|
extern void OSUnlockMutex(void *mutex);
|
2016-11-28 18:14:40 +01:00
|
|
|
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! IOS function
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2021-09-24 19:38:34 +02:00
|
|
|
extern int IOS_Ioctl(int fd, unsigned int request, void *input_buffer, unsigned int input_buffer_len, void *output_buffer, unsigned int output_buffer_len);
|
|
|
|
|
2016-11-28 18:14:40 +01:00
|
|
|
extern int IOS_Open(char *path, unsigned int mode);
|
2021-09-24 19:38:34 +02:00
|
|
|
|
2016-11-28 18:14:40 +01:00
|
|
|
extern int IOS_Close(int fd);
|
2016-11-17 20:36:25 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // __OS_FUNCTIONS_H_
|