Part 1
요약·해설
Board pin·harness·Twister fixture 요구 사항과 전체 event 출력을 보존합니다.
eSPI
Virtual wire
espi_device_connect
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
D7AA54633EC21279D3A61B46B8B538F451B998F66041358D3F9F7B295A035CB3
.. zephyr:code-sample:: espi
:name: Enhanced Serial Peripheral Interface (eSPI)
:relevant-api: espi_interface spi_interface
Use eSPI to connect to a slave device and exchange virtual wire packets.
Overview
********
This sample demonstrates how to use the :ref:`Enhanced Serial Peripheral Interface
(eSPI) API <espi_api>`.
It shows how to configure and select eSPI controller capabilities as part of
a simple eSPI handshake that includes exchanging virtual wire packets.
Standard platform signals are sent virtual wire packets over the bus.
Callbacks are registered that will write to the console indicating main
eSPI events and when a virtual wire is received.
Building and Running
********************
The sample can be built and executed on boards supporting eSPI.
Any pins required for minimum eSPI handshake should be configured.
Sample requires a correct harness and fixture setup.
Please connect an eSPI device to the testing board.
After that for the correct execution of that sample in twister, add into
boards's map-file next fixture settings::
- fixture: espi_device_connect
Sample output
=============
.. code-block:: console
Hello eSPI test!
eSPI test - I/O initialization...complete
eSPI slave configured successfully!
eSPI test - callbacks initialization... complete
eSPI test - callbacks registration... complete
eSPI test - Power initialization...complete
eSPI test - Handshake
eSPI BUS reset 0
VW channel is ready
PLT_RST changed 1
1st phase completed
2nd phase completed
3rd phase completed
note:: The values shown above might differ.
Part 3
한국어 전문 번역
개요
이 sample은 Enhanced Serial Peripheral Interface(eSPI) API의 사용법을 보여줍니다. Virtual wire packet 교환을 포함한 간단한 eSPI handshake 과정에서 eSPI controller capability를 구성하고 선택하는 방법을 설명합니다.
Standard platform signal은 bus를 통해 virtual wire packet으로 전송됩니다. Main eSPI event와 virtual wire 수신 시점을 console에 기록하는 callback을 등록합니다.
Build와 실행
이 sample은 eSPI를 지원하는 board에서 build하고 실행할 수 있습니다. 최소 eSPI handshake에 필요한 pin을 구성해야 하며, 올바른 harness와 fixture 설정이 필요합니다. 시험할 board에 eSPI device를 연결하십시오.
그다음 Twister에서 sample을 올바르게 실행하려면 board의 map file에 다음 fixture 설정을 추가합니다.
- fixture: espi_device_connect
Sample 출력
Hello eSPI test!
eSPI test - I/O initialization...complete
eSPI slave configured successfully!
eSPI test - callbacks initialization... complete
eSPI test - callbacks registration... complete
eSPI test - Power initialization...complete
eSPI test - Handshake
eSPI BUS reset 0
VW channel is ready
PLT_RST changed 1
1st phase completed
2nd phase completed
3rd phase completed
참고: 위에 표시된 값은 달라질 수 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.