LCPU_THREAD
Functions
-
rt_err_t send_msg_to_lcpu_thread(void *data, uint32_t len, void *cb, uint32_t user_data)
Generate a message, Send it to lcpu thread. This function will apply a memory block(message) to copy the content of data, using service_msg_fill. Therefor, after processing data, it is necessary to release this message using service_msg_rel.
- 参数:
data -- The Pointer of data content
len -- The length of data content
cb -- After gui_thread_queue received, it will call this cb to process this message.
uerdata -- User data.
- 返回值:
rt_err_t -- RT_EOK or RT_ERROR.
-
int lcpu_thread_init(void)
Create a message, Send it to lcpu thread, and simultaneously create message queues and bind it. This threads are mainly used for sensor's relative tasks, such as sensor schedule and sensor alogrithm process. For one core case, such as 52x, it will run in LCPU; other cases, it will run in HCPU. Therefor, here LCPU mean low power thread.