Adapter
Hardware-independent interfaces for MCU adapters.
Loading...
Searching...
No Matches
Adapter

Hardware-independent C++11 interfaces for MCU adapters.

This repository defines peripheral contracts. Device-specific adapters implement these interfaces using their hardware definitions. Reusable peripheral libraries depend on the contracts, not on a particular microcontroller.

Getting started

Design

Peripheral modules

Module Documentation Module Documentation
ADC ADC GPIO GPIO
PWM PWM Timer Timer
Serial Serial SPI SPI
I2C I2C EEPROM EEPROM
Watchdog Watchdog External interrupts External
Comparator Comparator Interrupts Interrupt
Clock Clock Power Power
Reset Reset

C++ API

The generated site also provides Classes, Namespaces, and Files navigation for the interfaces declared in include/adapter/.

#include <adapter/adc.hpp>
#include <adapter/gpio.hpp>

The interfaces are header-only and require C++11 or later. Each adapter implements only the contracts supported by its device. MCU objects use normal C++ construction; no factory or make() contract is required.