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

GPIO

A GPIO port is an SoC port or a peripheral with GPIOs on it. A pin carries its wiring flags (polarity, pulls, open drain), so callers deal in logical levels. GPIO ports also provide interrupt lines, through the interrupt controller class.

Directory

drivers/gpio

Header

pbl/drivers/gpio.h

Kconfig

CONFIG_GPIO, selected by the drivers and code that use it

API

API reference

Drivers

Driver

Compatible

Kconfig

Nordic nRF5

nordic,nrf52832-gpio

CONFIG_GPIO_NRF5

SiFli SF32LB

sifli,sf32lb57-gpio, sifli,sf32lb52-gpio

CONFIG_GPIO_SF32LB

ST STM32

st,stm32h743-pinctrl

CONFIG_GPIO_STM32

QEMU GPIO

qemu,pebble-gpio

CONFIG_GPIO_QEMU

Nordic nPM1300 GPIO

nordic,npm1300

CONFIG_GPIO_NPM1300

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