[][src]Crate esp32_hal

This ESP32 hal crate provides support for the ESP32 peripherals

Features

  • external_ram (enabled by default)
    • Enables support for external ram (psram). However proper initialization of external ram relies on a customized bootloader
  • all_in_ram
    • Forces all code and data in RAM instead of flash. This allows usage with the ROM bootloader and eases debugging
  • alloc
    • Enables support for dynamic memory allocations via a GlobalAllocator and/or AllocRef
  • mem
    • Include customized memcpy, memset, etc. which use word (4-byte) sized and aligned instructions to support IRAM usage and as optimization

Re-exports

pub use embedded_hal as hal;
pub use esp32 as target;

Modules

analog

Analog peripherals control.

clock_control

Clock and RTC watchdog control.

delay

Implementation of embedded hal delay traits using busy waiting

dport

DPort peripheral configuration

dprint

Print debug information to UART0

efuse
gpio

GPIO and pin configuration

interrupt

ESP32 specific interrupt handling

mem

Custom versions of routines used by LLVM (like memcpy, memset, etc.)

prelude

The prelude.

serial

UART peripheral control

spi

SPI peripheral control

timer

Timer peripherals

units

Units of measurement implementation for times and frequencies.

Macros

dflush

Macro for flushing the UART0 TX buffer

dprint

Macro for sending a formatted string to UART0 for debugging

dprintln

Macro for sending a formatted string to UART0 for debugging, with a newline.

Enums

Core

Functions

get_core
get_other_core

Attribute Macros

interrupt

Marks a function as an interrupt handler

ram

This attribute allows placing statics, constants and functions into ram.