Fix impl Gpio -> impl GpioConfig`

In the two sections "Peripherals as State Machines" and "Design
Contracts" of the "Static Guarantees" chapter, `impl Gpio` was
incorrectly used in place of `impl GpioConfig` at one place in each
section.

This commit fixes that.
This commit is contained in:
Björn Andersson
2019-12-07 17:48:40 +01:00
parent 5ca585c4a7
commit 5e193988db
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ struct GpioConfig {
periph: GPIO_CONFIG,
}
impl Gpio {
impl GpioConfig {
pub fn set_enable(&mut self, is_enabled: bool) {
self.periph.modify(|_r, w| {
w.enable().set_bit(is_enabled)

View File

@@ -60,7 +60,7 @@ struct GpioConfig {
periph: GPIO_CONFIG,
}
impl Gpio {
impl GpioConfig {
pub fn set_enable(&mut self, is_enabled: bool) {
self.periph.modify(|_r, w| {
w.enable().set_bit(is_enabled)