Skip to content

Commit 73099a0

Browse files
committed
Add missing stub functions to libs/pal/stubs/pal.c
1 parent 98fd762 commit 73099a0

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

libs/pal/stubs/pal.c

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,17 @@
3030
* Platform abstraction layer (PAL) API stubs
3131
*/
3232

33-
#include <stddef.h>
33+
#include <stdarg.h>
3434
#include <stdint.h>
35+
#include <stdio.h>
3536

37+
#include "common/compiler.h"
3638
#include "pal/pal.h"
3739

40+
void am_pal_ctor(void) {}
41+
42+
void am_pal_on_idle(void) {}
43+
3844
void am_pal_crit_enter(void) {}
3945

4046
void am_pal_crit_exit(void) {}
@@ -61,6 +67,14 @@ void am_pal_task_notify(int task_id) { (void)task_id; }
6167

6268
void am_pal_task_wait(int task_id) { (void)task_id; }
6369

70+
int am_pal_mutex_create(void) { return 0; }
71+
72+
void am_pal_mutex_lock(int mutex) { (void)mutex; }
73+
74+
void am_pal_mutex_unlock(int mutex) { (void)mutex; }
75+
76+
void am_pal_mutex_destroy(int mutex) { (void)mutex; }
77+
6478
uint32_t am_pal_time_get_ms(void) { return 0; }
6579

6680
uint32_t am_pal_time_get_tick(int domain) {
@@ -79,6 +93,11 @@ void am_pal_sleep_ticks(int domain, int ticks) {
7993
(void)ticks;
8094
}
8195

96+
void am_pal_sleep_till_ticks(int domain, uint32_t ticks) {
97+
(void)domain;
98+
(void)ticks;
99+
}
100+
82101
void am_pal_sleep_ms(int ms) { (void)ms; }
83102

84103
int am_pal_task_get_own_id(void) { return -1; }

0 commit comments

Comments
 (0)