Crate esp32c2_hal
source ·Re-exports
pub use embedded_hal as ehal;
Modules
- Analog to digital (ADC) conversion support.
- Common module for analog functions
- Debug Assistant
- Clock Control
- Delay driver
- Direct Memory Access Commons
- Minimal startup / runtime for RISC-V CPUs from Espressif
- General Purpose I/Os
- I2C Driver
- LEDC (LED PWM Controller) peripheral control
- The prelude
- Random number generator driver
- Serial Peripheral Interface
- System
- General-purpose timers
- State of the CPU saved when entering exception or interrupt
- UART driver
Macros
Structs
- Uses the
SYSTIMER
peripheral for counting clock cycles, as unfortunately the ESP32-C3 does NOT implement themcycle
CSR, which is how we would normally do this. - Random Number Generator
- RTC Watchdog Timer
- General-purpose timer
- Registers saved in trap handler
- UART driver
Enums
- Enumeration of CPU cores The actual number of available cores depends on the target.
- Enumeration of available CPU interrupts. It is possible to create a handler for each of the interrupts. (e.g.
interrupt3
) - Interrupt Error
- Interrupt kind
- Interrupt priority levels.
Functions
- Clear a CPU interrupt
- Disable the given peripheral interrupt.
- Enables a interrupt at a given priority
- Enable a CPU interrupt
- Get status of peripheral interrupts
- map⚠Assign a peripheral interrupt to an CPU interrupt.
- Set the interrupt kind (i.e. level or edge) of an CPU interrupt
- Set the priority level of an CPU interrupt
Attribute Macros
- Attribute to declare the entry point of the program