Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stm32f4 I2C HAL #1968

Merged
merged 4 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion chips/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HIL Support
| gpio::Output | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gpio::Pin | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| digest::Hmac | | | | | ✓ | | | | | |
| i2c::I2CMaster | | | ✓ | | ✓ | ✓ | ✓ | ✓ | ✓ | |
| i2c::I2CMaster | | | ✓ | | ✓ | ✓ | ✓ | ✓ | ✓ | |
| i2c::I2CMasterSlave | | | | | | | | ✓ | | |
| i2c::I2CSlave | | | | | | | | ✓ | | |
| mod::Controller | | | | | | ✓ | ✓ | ✓ | | |
Expand Down
4 changes: 4 additions & 0 deletions chips/stm32f4xx/src/chip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use kernel::Chip;

use crate::dma1;
use crate::exti;
use crate::i2c;
use crate::nvic;
use crate::spi;
use crate::tim2;
Expand Down Expand Up @@ -59,6 +60,9 @@ impl Chip for Stm32f4xx {
nvic::USART2 => usart::USART2.handle_interrupt(),
nvic::USART3 => usart::USART3.handle_interrupt(),

nvic::I2C1_EV => i2c::I2C1.handle_event(),
nvic::I2C1_ER => i2c::I2C1.handle_error(),

nvic::SPI3 => spi::SPI3.handle_interrupt(),

nvic::EXTI0 => exti::EXTI.handle_interrupt(),
Expand Down