pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
      • Device model
      • Simulators
      • Buses and I/O
      • Clocks, power and timing
      • Memory and storage
      • Display and graphics
      • Sensors and input
      • Audio and haptics
      • Power supply
      • System
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

System timer

The system timer drives the kernel’s notion of time: a clock source, a free-running counter the kernel reads, and a clock event device, which interrupts after a given number of cycles for the next tick or timeout. One device may provide both, and both keep running in every idle state. The SoC selects the drivers of its timers.

Directory

drivers/timer

Header

pbl/drivers/timer.h

API

API reference

Drivers

Driver

Compatible

Kconfig

Arm SysTick

—

CONFIG_TIMER_ARM_SYSTICK

QEMU

—

CONFIG_TIMER_QEMU

Nordic nRF5 RTC

—

CONFIG_TIMER_NRF5_RTC

SiFli SF32LB LPTIM

—

CONFIG_TIMER_SF32LB_LPTIM

ST STM32 LPTIM

—

CONFIG_TIMER_STM32_LPTIM

POSIX

—

CONFIG_TIMER_POSIX

Generated from PebbleOS 12b6c531f. This page is maintained in the pebbleos repository: docs/drivers/timer.md.