Skip to main content Crate ch32_hal Copy item path Source pub use ch32_metapac as pac;adc ADC, Analog to Digital Converter debug The debug module. delay dma DMA embassy exti flash Flash memory (FLASH)
CH32 FLASH is relatively close to STM32. This module is heavily inspired from embassy-stm32 gpio GPIO i2c Inter-Integrated-Circuit (I2C) interrupt Interrupt definitions. mode Operating modes for peripherals. peripherals Types for the peripheral singletons. prelude rcc Reset and clock control (RCC). signature E-signature values for CH32 series MCUs spi SPI, Serial Peripheral Interface time Time units timer Timers, PWM. usart USART - Universal Synchronous Asynchronous Receiver Transmitter usb Shared USB endpoint-buffer helpers (not a controller driver). bind_interrupts interrupt_mod Generate a standard mod interrupt for a HAL. print println try_println println! over SDI that drops the message rather than spinning when the
console is not armed. Use it in control loops; use [println!] when the
console is known to be attached.Config Peri An exclusive reference to a peripheral. Peripherals Struct containing all the peripheral singletons. PeripheralType Marker trait for peripheral types. RccPeripheral RemapPeripheral init Initialize the HAL with the provided configuration. entry interrupt Marks a function as an interrupt handler. (Wrapping as a mret function)