• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. _module-pw_chrono_rp2040:
2
3================
4pw_chrono_rp2040
5================
6.. pigweed-module::
7   :name: pw_chrono_rp2040
8
9This module provides a pw_chrono backend suitable for use with an RP2040-based
10board (e.g. Raspberry Pi Pico). This backend works with baremetal operation of
11a Pi Pico, and may be suitable for RTOS contexts with some additional
12configuration of the RTOS timer settings.
13
14-------------------
15SystemClock backend
16-------------------
17The ``pw_chrono_rp2040:system_clock`` backend target implements the
18``pw_chrono:system_clock`` facade by using the Pico SDK's time API. This is
19backed by a 64-bit hardware timer that reports time-since-boot as microseconds.
20As the peripheral API in the Pico SDK expects microseconds, this is the most
21appropriate clock to use when interacting with peripherals.
22
23See the :ref:`module-pw_chrono` documentation for ``pw_chrono`` for more
24information on what functionality this provides.
25