there has a question, some guix wiget need dynamic memeory, need the tx_byte_pool_create() function, but the function in the threadx.
how to fix it?
/* create a byte pool to use for rotating the needle bitmap */
tx_byte_pool_create(&memory_pool, "guix", guix_pool_memory, 1024);
/* install our memory allocation / de-allocation routines */
gx_system_memory_allocator_set(memory_allocate, memory_free);
I'm defined a text prompt,and a timer,in the timer int, refresh the text. the text not change.
but ,test guix + theadx,the text refreshed. because used the function tx_byte_pool_create();
gx_system_timer_start((GX_WIDGET *)widget, GUI_ID_Timer0, 1, GX_TICKS_SECOND);
gx_window_event_process(widget, event_ptr);
break;
case GX_EVENT_TIMER:
if (event_ptr->gx_event_payload.gx_event_timer_id == GUI_ID_Timer0)
{
sprintf(buf, "%d", count--);
gx_prompt_text_set((GX_PROMPT *)&(window_language.window_language_prompt_countdown), buf);
}
break;
default:
return gx_window_event_process(widget, event_ptr);