Skip to content

Commit 5a20ed9

Browse files
committed
add malloc free
1 parent a1dc5ef commit 5a20ed9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Port/gx_system_rtos_bind_rtthread.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ VOID gx_generic_rtos_initialize(VOID)
8787
guix_timer_event_pending = GX_FALSE;
8888
rt_mutex_init(&guix_system_lock_mutex, "gx_system_lock", RT_IPC_FLAG_FIFO);
8989

90+
gx_system_memory_allocator_set(rt_malloc, rt_free);
91+
9092
/* initialize a custom fifo queue structure */
9193

9294
guix_event_queue.first = GX_NULL;
@@ -111,8 +113,7 @@ VOID gx_generic_rtos_initialize(VOID)
111113
rt_sem_init(&guix_event_queue.count_sem, "gx_queue_count", 0, RT_IPC_FLAG_FIFO);
112114
}
113115

114-
VOID(*gx_system_thread_entry)
115-
(ULONG);
116+
VOID(*gx_system_thread_entry)(ULONG);
116117

117118
// A small shell function to convert the void * arg expected by uC/OS to
118119
// a ULONG parameter expected by GUIX thread entry

0 commit comments

Comments
 (0)