stm32-rs / stm32l0xx-hal

A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust
BSD Zero Clause License
96 stars 60 forks source link

I2C slave support #214

Open kuon opened 2 years ago

kuon commented 2 years ago

I use the STM32L0XX serie of chip as I2C->SPI/UART/IO bridge.

And for this, I need the chip to be in STOP mode and wake up on I2C address match.

I currently have a working rust implementation that does not use this HAL, but I'd like to improve it so it could get included.

I do not know what would be the best way to proceed as, while my code work, it might not be "friendly" to include in this HAL without a whole rewrite.

I'd be up to do it, but first I have a few questions: