File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 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+
3844void am_pal_crit_enter (void ) {}
3945
4046void am_pal_crit_exit (void ) {}
@@ -61,6 +67,14 @@ void am_pal_task_notify(int task_id) { (void)task_id; }
6167
6268void 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+
6478uint32_t am_pal_time_get_ms (void ) { return 0 ; }
6579
6680uint32_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+
82101void am_pal_sleep_ms (int ms ) { (void )ms ; }
83102
84103int am_pal_task_get_own_id (void ) { return -1 ; }
You can’t perform that action at this time.
0 commit comments