|
Adapter
Hardware-independent interfaces for MCU adapters.
|
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.
| 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 |
The generated site also provides Classes, Namespaces, and Files navigation for the interfaces declared in include/adapter/.
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.