Skip to content

Commit

Permalink
chore: make Nucleo64WBUi compile conditionally on whether there is a …
Browse files Browse the repository at this point in the history
…PORTD
  • Loading branch information
daantimmer committed Jun 28, 2024
1 parent f93d7db commit 01c90a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hal_st/instantiations/NucleoUi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace main_
#endif
};

#if defined(PORTD)
// UM2435: MB1355 reference board with STM32WB55RG
struct Nucleo64WBUi
{
Expand All @@ -46,6 +47,7 @@ namespace main_
hal::GpioPinStm ledGreen{ hal::Port::B, 0 };
hal::GpioPinStm ledBlue{ hal::Port::B, 5 };
};
#endif

// UM3103: MB1863 reference board with STM32WBA52CG
struct Nucleo64WBAUi
Expand Down

0 comments on commit 01c90a9

Please sign in to comment.