picofuse

Modules | Files
Hardware

The Hardware module provides cross-platform abstractions for on-board peripherals such as GPIO and ADC. More...

Collaboration diagram for Hardware:

Modules

 ADC
 Analog-to-Digital Converter (ADC) interface for hardware platforms.
 
 Block I/O
 A block-oriented read/write/erase abstraction: storage is addressed as a fixed number of equally-sized blocks (hw_block_count, hw_block_size), rather than a flat byte stream - the natural shape for media that can only be written a block at a time and, for some backends, must be explicitly erased before it can be rewritten at all (hw_block_erase).
 
 Device I/O
 A bus-agnostic interface for transferring data to and from addressable devices - register reads/writes and raw transfers - without the caller needing to know whether the underlying bus is I2C, SPI, or (in future) something like an FTDI adapter.
 
 GPIO
 General Purpose Input/Output (GPIO) interface for hardware platforms.
 
 LED
 Support for controlling on-board and external LEDs.
 
 Memory
 
 PWM
 Pulse Width Modulation (PWM) interface for hardware platforms.
 
 UART
 Universal Asynchronous Receiver/Transmitter (UART) interface for hardware platforms.
 
 USB
 USB host interface for hardware platforms.
 
 Watchdog
 
 WiFi
 Wi-Fi network management interface.
 

Files

file  init.h
 Hardware initialization, cleanup and polling hooks.
 

Lifecycle

void hw_init (void)
 Initializes the hardware system on startup.
 
void hw_exit (void)
 Cleans up the hardware system on shutdown.
 
void hw_poll (void)
 Occasional polling function for the hardware system.
 

Detailed Description

The Hardware module provides cross-platform abstractions for on-board peripherals such as GPIO and ADC.