Skip to content

Commit

Permalink
updates namespace for demoproject
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeFreer committed Apr 7, 2024
1 parent 2edf5ed commit 391010e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions firmware/projects/DemoProject/platforms/stm32f767/bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ void SystemClock_Config();
}

namespace mcal {
periph::DigitalInput button_di{ButtonPin_GPIO_Port, ButtonPin_Pin};
periph::DigitalOutput indicator_do{LedPin_GPIO_Port, LedPin_Pin};
using namespace stm32f767::periph;

DigitalInput button_di{ButtonPin_GPIO_Port, ButtonPin_Pin};
DigitalOutput indicator_do{LedPin_GPIO_Port, LedPin_Pin};
} // namespace mcal

namespace bindings {
Expand Down
6 changes: 4 additions & 2 deletions firmware/projects/DemoProject/platforms/windows/bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
#include "shared/periph/gpio.h"

namespace mcal {
periph::DigitalInput button_di{"Button"};
periph::DigitalOutput indicator_do{"Indicator"};
using namespace windows::periph;

DigitalInput button_di{"Button"};
DigitalOutput indicator_do{"Indicator"};
} // namespace mcal

namespace bindings {
Expand Down

0 comments on commit 391010e

Please sign in to comment.