From 391010e54421e35ea2c7ec3ea5b60dbe8ae10a1b Mon Sep 17 00:00:00 2001 From: BlakeFreer Date: Sun, 7 Apr 2024 12:39:22 -0400 Subject: [PATCH] updates namespace for demoproject --- .../projects/DemoProject/platforms/stm32f767/bindings.cc | 6 ++++-- firmware/projects/DemoProject/platforms/windows/bindings.cc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/firmware/projects/DemoProject/platforms/stm32f767/bindings.cc b/firmware/projects/DemoProject/platforms/stm32f767/bindings.cc index 27b5d70bc..a48409e07 100644 --- a/firmware/projects/DemoProject/platforms/stm32f767/bindings.cc +++ b/firmware/projects/DemoProject/platforms/stm32f767/bindings.cc @@ -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 { diff --git a/firmware/projects/DemoProject/platforms/windows/bindings.cc b/firmware/projects/DemoProject/platforms/windows/bindings.cc index f02be931c..76f205a30 100644 --- a/firmware/projects/DemoProject/platforms/windows/bindings.cc +++ b/firmware/projects/DemoProject/platforms/windows/bindings.cc @@ -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 {