C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
platform.h
1#pragma once
2
3/* Prototype for platform-specific system call (optional)
4 * Your platform is free to define function having this name and prototype. If it does,
5 * then this version will override kernel-default version that does nothing. You can
6 * place platform-specific hooks which need kernel privileges to execute here.
7 *
8 * If your platform doesn't need any such feature, then don't include this function in
9 * your platform code, the default version will be used which provides no functionality.
10 * @param arg1 system call argument 1
11 * @param arg2 system call argument 2
12 * @param arg3 system call argument 3
13 * @param arg4 system call argument 4
14 * @returns outcome of the system call, it will be made available to the calling thread
15 * when system call returns.
16 **/
17int os_sys_platform_call(uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4);
18
27void os_init_platform(void);
28
29#define os_init_platform()
30
40void os_thread_initialize_platform(struct OS_thread_t * thread);
int os_sys_platform_call(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint32_t arg3)
Platform-specific system call entrypoint (optional) Use as very last resort measure!...
Definition rp2xxx.c:23
Thread control block.
Definition runtime.h:72