samples/drivers/misc/timeaware_gpio/README.html · samples/drivers/misc/timeaware_gpio/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Drivers · TGPIO

Time-aware GPIO

Clock rate와 시작 시각, event count의 증가를 console에서 확인합니다.

Official pathsamples/drivers/misc/timeaware_gpio/README.html
Source filesamples/drivers/misc/timeaware_gpio/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Oscilloscope·generator·loopback 조건과 Raptor Lake build를 보존합니다.

Output

Periodic pulse

Input

Timestamp

Rate

19.2 MHz

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 42EF0FC1D0426675DE21C6C83CEF40314971D04F661E32A26C179BF6CEE21CF5
.. zephyr:code-sample:: timeaware-gpio
   :name: Time-aware GPIO
   :relevant-api: tgpio_interface

   Synchronize clocks.

Overview
********

A sample application that can be used with any supported boards. eg. RPL.
prints configuration info to the console. Below functionalities are tested:

1. Periodic pulse generation (an Oscilloscope or loopback may be required)
2. Input pulse timestamping (a pulse generator or loopback may be required)

Building and Running
********************

This application can be built and executed as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/misc/timeaware_gpio
   :board: intel_rpl_crb
   :host-os: unix
   :goals: build


To build for another supported board, change "intel_rpl_crb" to that board's
name (if supported).

Sample Output
=============

.. code-block:: console

   *** Booting Zephyr OS build zephyr-v3.4.0-4166-g52b34a310c67 ***
   [TGPIO] Bind Success
   [TGPIO] Time now: 00000001477ed72f
   [TGPIO] Running rate: 19200000
   [TGPIO] Periodic pulses start at: 0000000148a3cf2f
   [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000
   [TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001
   [TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002
   [TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003
   [TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004
   [TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005
   [TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006
   [TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007
   [TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008
   [TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009
   [TGPIO] timestamp: 0000000152f08731, event count: 000000000000000a
   [TGPIO] timestamp: 0000000154157f31, event count: 000000000000000b

Part 3

한국어 전문 번역

개요

지원되는 모든 board, 예를 들어 RPL에서 사용할 수 있는 sample application입니다. 설정 정보를 console에 출력하며 다음 기능을 시험합니다.

  1. 주기적 pulse 생성. Oscilloscope 또는 loopback이 필요할 수 있습니다.
  2. 입력 pulse timestamp 기록. Pulse generator 또는 loopback이 필요할 수 있습니다.

Build와 실행

다음과 같이 application을 build하고 실행할 수 있습니다.

# From the root of the zephyr repository
west build -b intel_rpl_crb samples/drivers/misc/timeaware_gpio

지원되는 다른 board용으로 build하려면 intel_rpl_crb을 해당 board 이름으로 바꾸십시오.

Sample 출력

*** Booting Zephyr OS build zephyr-v3.4.0-4166-g52b34a310c67 ***
[TGPIO] Bind Success
[TGPIO] Time now: 00000001477ed72f
[TGPIO] Running rate: 19200000
[TGPIO] Periodic pulses start at: 0000000148a3cf2f
[TGPIO] timestamp: 0000000000000000, event count: 0000000000000000
[TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001
[TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002
[TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003
[TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004
[TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005
[TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006
[TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007
[TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008
[TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009
[TGPIO] timestamp: 0000000152f08731, event count: 000000000000000a
[TGPIO] timestamp: 0000000154157f31, event count: 000000000000000b

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.