File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ #include < executorch/runtime/platform/compiler.h>
2
+ #include < executorch/runtime/platform/platform.h>
1
3
#include < zephyr/kernel.h>
2
4
#include < zephyr/sys/printk.h>
5
+ #include < cstdio>
6
+ #include < cstdlib>
3
7
4
8
void et_pal_init (void ) {}
5
9
6
10
ET_NORETURN void et_pal_abort (void ) {
7
- _exit (-1 );
11
+ _Exit (-1 );
8
12
}
9
13
10
14
et_timestamp_t et_pal_current_ticks (void ) {
@@ -21,13 +25,13 @@ et_tick_ratio_t et_pal_ticks_to_ns_multiplier(void) {
21
25
* Emit a log message via platform output (serial port, console, etc).
22
26
*/
23
27
void et_pal_emit_log_message (
24
- ET_UNUSED et_timestamp_t timestamp,
28
+ et_timestamp_t timestamp,
25
29
et_pal_log_level_t level,
26
30
const char * filename,
27
- ET_UNUSED const char * function,
31
+ const char * function,
28
32
size_t line,
29
33
const char * message,
30
- ET_UNUSED size_t length) {
34
+ size_t length) {
31
35
fprintf (
32
36
stderr,
33
37
" %c [executorch:%s:%zu %s()] %s\n " ,
@@ -42,6 +46,6 @@ void* et_pal_allocate(size_t size) {
42
46
return k_malloc (size);
43
47
}
44
48
45
- void et_pal_free (ET_UNUSED void * ptr) {
49
+ void et_pal_free (void * ptr) {
46
50
k_free (ptr);
47
51
}
You can’t perform that action at this time.
0 commit comments