Expand description
§JH71xx-HAL
jh71xx-hal is a HAL (hardware abstraction layer) crate for JH71xx-based SoCs from StarFive.
Currently, only the JH7110 SoC is supported. JH7100 appears to be discontinued, and the next SoC line from StarFive will be the JH81xx series.
Please submit changes if you would like to add support for the JH7100 SoC!
See individual module documentation for more information and examples.
Re-exports§
pub extern crate jh71xx_pac as pac;
Modules§
- clocks
- Clock initialization and configuration.
- ddr
- Functions and types for handling DDR configuration.
- delay
- gpio
- GPIO configuration and access.
- i2c
- I2C configuration and access.
- mmc
- MMC abstraction for the DesignWare MMC controllers used in JH7110 SoCs.
- pll
- PLL initialization and configuration.
- pwm
- PWM configuration and access.
- register
- spi
- SPI configuration and access.
- uart
- UART peripheral access
Macros§
- bitflag_
from_ u32 - Implements the
Fromtrait for bitflag types. - bitflag_
is_ set - Implements a function to determine if a
bitflaghas a set flag. - clear_
csr - hal_
enum - impl_
mmc_ ops - Convenience macro helper to implement the MmcOps trait.
- mem_
cfg_ arr - Convenience macro for defining MemCfg constant arrays.
- mem_
set_ arr - Convenience macro for defining MemSet constant arrays.
- read_
as_ csr - set_
clear_ csr - set_csr
- write_
as_ csr