@@ -43,31 +43,32 @@ typedef struct esp_gmf_task_config {
4343 * Represents a GMF task, including its properties, configuration, and internal state.
4444 */
4545typedef struct _esp_gmf_task {
46- struct esp_gmf_obj_ base ; /*!< Base object for GMF tasks */
47- esp_gmf_job_t * working ; /*!< Currently executing job in the task */
48- esp_gmf_job_stack_t * start_stack ; /*!< Stack for the start job */
46+ struct esp_gmf_obj_ base ; /*!< Base object for GMF tasks */
47+ esp_gmf_job_t * working ; /*!< Currently executing job in the task */
48+ esp_gmf_job_stack_t * start_stack ; /*!< Stack for the start job */
4949
5050 /* Properties */
51- esp_gmf_event_cb event_func ; /*!< Callback function for task events */
52- esp_gmf_event_state_t state ; /*!< Current state of the task */
51+ esp_gmf_event_cb event_func ; /*!< Callback function for task events */
52+ esp_gmf_event_state_t state ; /*!< Current state of the task */
5353
5454 /* Protect */
55- esp_gmf_task_config_t thread ; /*!< Configuration settings for the task */
56- void * ctx ; /*!< Context associated with the task */
55+ esp_gmf_task_config_t thread ; /*!< Configuration settings for the task */
56+ void * ctx ; /*!< Context associated with the task */
5757
5858 /* Private */
59- void * oal_thread ; /*!< Handle to the thread */
60- void * lock ; /*!< Mutex lock for task synchronization */
61- void * event_group ; /*!< Event group for wait events */
62- void * block_sem ; /*!< Semaphore for blocking tasks */
63- void * wait_sem ; /*!< Semaphore for task waiting */
64- int api_sync_time ; /*!< Timeout for synchronization */
65-
66- uint8_t _task_run : 1 ; /*!< Internal flag for task execution */
67- uint8_t _running : 1 ; /*!< Internal flag for task running state */
68- uint8_t _pause : 1 ; /*!< Internal flag for task pause state */
69- uint8_t _stop : 1 ; /*!< Internal flag for task stop state */
70- uint8_t _destroy : 1 ; /*!< Internal flag for task destruction */
59+ void * oal_thread ; /*!< Handle to the thread */
60+ void * lock ; /*!< Mutex lock for task synchronization */
61+ void * event_group ; /*!< Event group for wait events */
62+ void * block_sem ; /*!< Semaphore for blocking tasks */
63+ void * wait_sem ; /*!< Semaphore for task waiting */
64+ int api_sync_time ; /*!< Timeout for synchronization */
65+
66+ uint8_t _task_run : 1 ; /*!< Internal flag for task execution */
67+ uint8_t _running : 1 ; /*!< Internal flag for task running state */
68+ uint8_t _run : 1 ; /*!< Internal flag for task run API flag */
69+ uint8_t _pause : 1 ; /*!< Internal flag for task pause API flag */
70+ uint8_t _stop : 1 ; /*!< Internal flag for task stop API flag */
71+ uint8_t _destroy : 1 ; /*!< Internal flag for task destruction API flag */
7172} esp_gmf_task_t ;
7273
7374/**
0 commit comments