diff --git a/hal_st/instantiations/StmEventInfrastructure.hpp b/hal_st/instantiations/StmEventInfrastructure.hpp index 031d3006..207839a3 100644 --- a/hal_st/instantiations/StmEventInfrastructure.hpp +++ b/hal_st/instantiations/StmEventInfrastructure.hpp @@ -5,16 +5,26 @@ #include "hal_st/stm32fxxx/LowPowerStrategyStm.hpp" #include "hal_st/stm32fxxx/SystemTickTimerService.hpp" #include "infra/event/EventDispatcherWithWeakPtr.hpp" +#include namespace main_ { + constexpr std::size_t DefaultInterruptTableSize() + { +#if defined(STM32H5) + return 149; +#else + return 128; +#endif + } + struct StmEventInfrastructure { explicit StmEventInfrastructure(infra::Duration tickDuration = std::chrono::milliseconds(1)); void Run(); - hal::InterruptTable::WithStorage<128> interruptTable; + hal::InterruptTable::WithStorage interruptTable; infra::EventDispatcherWithWeakPtr::WithSize<50> eventDispatcher; hal::GpioStm gpio; @@ -27,7 +37,7 @@ namespace main_ void Run(); - hal::InterruptTable::WithStorage<128> interruptTable; + hal::InterruptTable::WithStorage interruptTable; hal::LowPowerStrategyStm lowPowerStrategy; infra::LowPowerEventDispatcher::WithSize<50> eventDispatcher; hal::GpioStm gpio;