Merge branch 'refactor/twai_hal_state' into 'master'

Refactor TWAI HAL to store state information

Closes IDF-1633

See merge request espressif/esp-idf!9789
This commit is contained in:
Michael (XIAO Xufeng)
2020-09-03 23:22:30 +08:00
8 changed files with 249 additions and 362 deletions
+3 -3
View File
@@ -166,9 +166,9 @@ esp_err_t twai_driver_uninstall(void);
*
* This function starts the TWAI driver, putting the TWAI driver into the running
* state. This allows the TWAI driver to participate in TWAI bus activities such
* as transmitting/receiving messages. The RX queue is reset in this function,
* clearing any unread messages. This function can only be called when the TWAI
* driver is in the stopped state.
* as transmitting/receiving messages. The TX and RX queue are reset in this function,
* clearing any messages that are unread or pending transmission. This function
* can only be called when the TWAI driver is in the stopped state.
*
* @return
* - ESP_OK: TWAI driver is now running