From 00ef8730306d5cfe0d681ad717993588d00a68ec Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Wed, 11 Nov 2020 17:10:20 +0100 Subject: [PATCH] fixed simulator build --- src/eez/modules/dib-dcp405/dib-dcp405.cpp | 2 ++ src/eez/modules/psu/psu.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/eez/modules/dib-dcp405/dib-dcp405.cpp b/src/eez/modules/dib-dcp405/dib-dcp405.cpp index acb765219..d5b4db75d 100644 --- a/src/eez/modules/dib-dcp405/dib-dcp405.cpp +++ b/src/eez/modules/dib-dcp405/dib-dcp405.cpp @@ -1084,11 +1084,13 @@ void tickDacRamp(uint32_t tickCount) { } // namespace dcp405 +#if defined(EEZ_PLATFORM_STM32) void readIntcapRegisterShortcut(int slotIndex) { dcp405::DcpChannel *channel = (dcp405::DcpChannel *)Channel::getBySlotIndex(slotIndex, 0); if (channel) { channel->ioexp.readIntcapRegister(); } } +#endif } // namespace eez diff --git a/src/eez/modules/psu/psu.cpp b/src/eez/modules/psu/psu.cpp index 2f3ef27c5..c0da37898 100644 --- a/src/eez/modules/psu/psu.cpp +++ b/src/eez/modules/psu/psu.cpp @@ -936,8 +936,10 @@ bool powerUp() { // turn on Power On (PON) bit of ESE register reg_set_esr_bits(ESR_PON); +#if defined(EEZ_PLATFORM_STM32) HAL_NVIC_EnableIRQ(EXTI9_5_IRQn); HAL_NVIC_EnableIRQ(EXTI15_10_IRQn); +#endif InfoTrace("Power up (v%s)\n", MCU_FIRMWARE); @@ -994,8 +996,10 @@ void powerDown() { powerDownChannels(); +#if defined(EEZ_PLATFORM_STM32) HAL_NVIC_DisableIRQ(EXTI9_5_IRQn); HAL_NVIC_DisableIRQ(EXTI15_10_IRQn); +#endif board::powerDown();