Lines Matching refs:xErr

80     esp_err_t xErr;  in xMBMasterPortTimersInit()  local
90 xErr = timer_init(usTimerGroupIndex, usTimerIndex, &config); in xMBMasterPortTimersInit()
91 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
92 "timer init failure, timer_init() returned (0x%x).", (uint32_t)xErr); in xMBMasterPortTimersInit()
94 xErr = timer_pause(usTimerGroupIndex, usTimerIndex); in xMBMasterPortTimersInit()
95 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
96 "stop timer failure, timer_pause() returned (0x%x).", (uint32_t)xErr); in xMBMasterPortTimersInit()
98 xErr = timer_set_counter_value(usTimerGroupIndex, usTimerIndex, 0x00000000ULL); in xMBMasterPortTimersInit()
99 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
101 (uint32_t)xErr); in xMBMasterPortTimersInit()
104 xErr = timer_set_alarm_value(usTimerGroupIndex, usTimerIndex, (uint32_t)(usTimeOut50us)); in xMBMasterPortTimersInit()
105 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
107 (uint32_t)xErr); in xMBMasterPortTimersInit()
109 xErr = timer_isr_register(usTimerGroupIndex, usTimerIndex, in xMBMasterPortTimersInit()
111 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersInit()
113 (uint32_t)xErr); in xMBMasterPortTimersInit()
123 esp_err_t xErr; in xMBMasterPortTimersEnable() local
124 xErr = timer_pause(usTimerGroupIndex, usTimerIndex); // stop timer in xMBMasterPortTimersEnable()
125 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersEnable()
127 (uint32_t)xErr); in xMBMasterPortTimersEnable()
128 xErr = timer_set_counter_value(usTimerGroupIndex, usTimerIndex, 0ULL); // reset timer in xMBMasterPortTimersEnable()
129 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersEnable()
131 (uint32_t)xErr); in xMBMasterPortTimersEnable()
133 xErr = timer_set_alarm_value(usTimerGroupIndex, usTimerIndex, in xMBMasterPortTimersEnable()
135 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersEnable()
137 (uint32_t)xErr); in xMBMasterPortTimersEnable()
138 xErr = timer_enable_intr(usTimerGroupIndex, usTimerIndex); in xMBMasterPortTimersEnable()
139 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersEnable()
141 (uint32_t)xErr); in xMBMasterPortTimersEnable()
142 xErr = timer_start(usTimerGroupIndex, usTimerIndex); // start timer in xMBMasterPortTimersEnable()
143 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBMasterPortTimersEnable()
145 (uint32_t)xErr); in xMBMasterPortTimersEnable()