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

PebbleOS

  • Overview
  • Contributing
  • Start here
  • Development
  • System
    • Architecture overview
    • Kernel
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
  • Community
  • Reference
  • Firmware API Reference

Drivers

Drivers live under drivers/, one directory per driver class, with the class interface in include/pbl/drivers/. Newer classes are built on the device model; board and SoC specific implementations document their own definitions in the API reference under their class.

Two classes carry design notes worth reading before changing them:

  • Accelerometer — include/pbl/drivers/accel.h explains the split between the dumb low-level driver and the accel service that owns buffering, clients and subsampling, so the same service code runs on any accel part.

  • Flash — drivers/flash/README.md documents the two flash APIs: the main one, and a coredump-only path that must work without OS services.

  • Device model
  • CRC

The API reference documents every driver class.

Generated from PebbleOS 3a7b71785. This page is maintained in the pebbleos repository: docs/drivers/index.md.