Skip to content

Commit

Permalink
reset modules after power up
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 2, 2020
1 parent e8f8e15 commit 2744d63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/eez/modules/bp3c/flash_slave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@

#include <assert.h>

#include "eez/firmware.h"
#include "eez/system.h"

#include "eez/modules/psu/psu.h"
#include "eez/modules/psu/io_pins.h"
#include "eez/modules/psu/datetime.h"
#include "eez/modules/psu/profile.h"
#include "eez/modules/psu/channel_dispatcher.h"
#include "eez/modules/psu/sd_card.h"
#include <eez/firmware.h>
#include <eez/system.h>

#include <eez/modules/psu/psu.h>
#include <eez/modules/psu/io_pins.h>
#include <eez/modules/psu/datetime.h>
#include <eez/modules/psu/profile.h>
#include <eez/modules/psu/channel_dispatcher.h>
#include <eez/modules/psu/sd_card.h>
#include <eez/modules/psu/scpi/psu.h>
#include <eez/modules/psu/gui/psu.h>

#include "eez/modules/bp3c/flash_slave.h"
#include <eez/modules/bp3c/flash_slave.h>
#include <eez/modules/bp3c/io_exp.h>

#include <eez/libs/sd_fat/sd_fat.h>
Expand Down
2 changes: 2 additions & 0 deletions src/eez/modules/psu/psu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ bool powerUp() {
board::powerUp();
g_powerIsUp = true;

bp3c::io_exp::hardResetModules();

psuReset();

ontime::g_mcuCounter.start();
Expand Down

0 comments on commit 2744d63

Please sign in to comment.