ESP32
ESP32, UART, uart_queue_events
CoyoteUgly
2018. 8. 19. 21:11
ESP32, UART, uart_queue_events
0. 참고 사이트
- esp-idf\examples\peripherals\uart_events
- https://github.com/espressif/esp-idf/tree/master/examples/peripherals/uart_events
1. 모듈
2. 보드 연결
UART2 line를 사용합니다.
Tx 17, Rx 16
Tx 17, Rx 16
3. 소스
https://github.com/sglee0223/esp32/tree/master/uart_queue_events
4. 결과 화면
stm32f1 보드가 500ms마다 Tx를 하면
A thread 에서 QueueEvent를 통해 Rx를 하며
B thread에서는 500ms마다 Tx를 합니다.