Home
last modified time | relevance | path

Searched refs:s_te_obj (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/touch_element/
Dtouch_element.c105 static te_obj_t *s_te_obj = NULL; variable
146 TE_CHECK(s_te_obj == NULL, ESP_ERR_INVALID_STATE); in touch_element_install()
149 s_te_obj = (te_obj_t *)calloc(1, sizeof(te_obj_t)); in touch_element_install()
150 TE_CHECK(s_te_obj != NULL, ESP_ERR_NO_MEM); in touch_element_install()
153s_te_obj->global_config = (touch_elem_global_config_t *)calloc(1, sizeof(touch_elem_global_config_… in touch_element_install()
154 s_te_obj->mutex = xSemaphoreCreateMutex(); in touch_element_install()
155 TE_CHECK_GOTO(s_te_obj->global_config != NULL && s_te_obj->mutex != NULL, cleanup); in touch_element_install()
156 xSemaphoreTake(s_te_obj->mutex, portMAX_DELAY); in touch_element_install()
157 TE_CLS_METHODS_INITIALIZER(s_te_obj->object_methods, TE_CLS_TYPE_BUTTON, TE_CLS_TYPE_MAX); in touch_element_install()
164 xSemaphoreGive(s_te_obj->mutex); in touch_element_install()
[all …]