Lines Matching refs:xErr
86 esp_err_t xErr; in xMBPortTimersInit() local
96 xErr = timer_init(usTimerGroupIndex, usTimerIndex, &config); in xMBPortTimersInit()
97 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
98 "timer init failure, timer_init() returned (0x%x).", xErr); in xMBPortTimersInit()
100 xErr = timer_pause(usTimerGroupIndex, usTimerIndex); in xMBPortTimersInit()
101 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
102 "stop timer failure, timer_pause() returned (0x%x).", xErr); in xMBPortTimersInit()
104 xErr = timer_set_counter_value(usTimerGroupIndex, usTimerIndex, 0x00000000ULL); in xMBPortTimersInit()
105 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
106 "timer set value failure, timer_set_counter_value() returned (0x%x).", xErr); in xMBPortTimersInit()
109 xErr = timer_set_alarm_value(usTimerGroupIndex, usTimerIndex, (uint32_t)(usTim1Timerout50us)); in xMBPortTimersInit()
110 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
112 (uint32_t)xErr); in xMBPortTimersInit()
114 xErr = timer_isr_register(usTimerGroupIndex, usTimerIndex, vTimerGroupIsr, in xMBPortTimersInit()
116 MB_PORT_CHECK((xErr == ESP_OK), FALSE, in xMBPortTimersInit()
118 (uint32_t)xErr); in xMBPortTimersInit()