Skip to content

Commit

Permalink
fixed simulator build
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 11, 2020
1 parent 27f55f6 commit 00ef873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eez/modules/dib-dcp405/dib-dcp405.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions src/eez/modules/psu/psu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 00ef873

Please sign in to comment.