Part 1
요약·해설
PS/2 mouse 연결, map file fixture와 console 출력을 보존합니다.
Device
PS/2 mouse
Fixture
fixture_connect_mouse
Events
Interrupts
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
6BBA94CDA39D4BD4F5AA7E8F5197F2D1233276B7DA5D98FAE4D219147897144C
.. zephyr:code-sample:: ps2
:name: PS/2 interface
:relevant-api: ps2_interface
Communicate with a PS/2 mouse.
Overview
********
This sample demonstrates how to use the :ref:`PS/2 API <ps2_api>`.
Callbacks are registered that will write to the console indicating PS2 events.
These events indicate mouse configuration responses and mouse interaction.
Building and Running
********************
The sample can be built and executed on boards supporting PS/2.
It requires a correct fixture setup. Please connect a PS/2 mouse in order to
exercise the functionality.
For the correct execution of that sample in twister, add into boards's
map-file next fixture settings::
- fixture: fixture_connect_mouse
Sample output
=============
.. code-block:: console
PS/2 test with mouse
Note: You are expected to see several interrupts
as you configure/move the mouse!
Part 3
한국어 전문 번역
개요
이 sample은 PS/2 API를 사용하는 방법을 보여줍니다. PS/2 event를 console에 기록하는 callback을 등록하며, 이 event는 mouse 설정 response와 mouse interaction을 나타냅니다.
Build와 실행
PS/2를 지원하는 board에서 sample을 build하고 실행할 수 있습니다. 올바른 fixture 설정이 필요하므로 기능을 시험할 PS/2 mouse를 연결하십시오.
Twister에서 sample을 올바르게 실행하려면 board의 map file에 다음 fixture 설정을 추가합니다.
- fixture: fixture_connect_mouse
Sample 출력
PS/2 test with mouse
Note: You are expected to see several interrupts
as you configure/move the mouse!
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.