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

Drivers

A driver class is the interface of one kind of device, such as a display, an I2C bus or an accelerometer: its API in include/pbl/drivers/, its core and its drivers in drivers/<class>/. Code that uses a device goes through its class, whatever the part behind it. Classes are built on the device model, which gives every device its initialization, dependencies and power management.

A board declares its devices in C, or has them generated from its devicetree, in which case a driver is built when the board, an add-on or the application has an enabled node with its compatible (see The devicetree layer). The class itself is enabled by the application, such as CONFIG_DISPLAY=y, or selected by the drivers and code that use it. Code reaches the devices it needs by their role, such as DISPLAY or FLASH (see Roles).

Simulators are drivers with no hardware behind them, which tests and emulated boards use in place of a device.

Classes

  • Buses and I/O
    • GPIO
    • Pin control
    • Interrupt controller
    • I2C
    • SPI
    • SPI memory
    • HyperBus
    • UART
    • CAN
    • Ethernet
    • Ethernet PHY
    • MDIO
    • MIPI DBI
    • MIPI DSI
    • PHY
    • ADC
    • PWM
    • DMA
    • Mailbox
    • Hardware spinlock
  • Clocks, power and timing
    • Clocks
    • Power domain
    • Regulator
    • Reset
    • System timer
    • RTC
    • Watchdog
  • Memory and storage
    • Flash
    • RAM
    • Non-volatile memory
    • Disk
  • Display and graphics
    • Display
    • Display bridge
    • Panel
    • Backlight
    • LED
    • GPU
  • Sensors and input
    • Sensors
    • Accelerometer
    • Magnetometer
    • Ambient light sensor
    • Pressure sensor
    • Temperature sensor
    • PPG front end
    • Touchscreen
    • Input
  • Audio and haptics
    • Audio
    • Vibration motor
  • Power supply
    • Battery
    • Charger
  • System
    • SoC information
    • Remote processor
    • Multi-function devices
    • System controller
    • RNG
    • Reset cause
    • CRC
    • Crypto

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