Skip to content

Commit

Permalink
Merge pull request #8219 from jeromecoutant/PR_EMAC_SLEEP
Browse files Browse the repository at this point in the history
STM32 EMAC : lock deep sleep
  • Loading branch information
Cruz Monrreal committed Oct 11, 2018
2 parents 5c675d3 + 79bef6e commit 2a91a91
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "cmsis_os.h"

#include "mbed.h"
#include "mbed_interface.h"
#include "mbed_assert.h"
#include "mbed_shared_queues.h"
Expand Down Expand Up @@ -474,6 +475,8 @@ void mbed_default_mac_address(char *mac)

bool STM32_EMAC::power_up()
{
sleep_manager_lock_deep_sleep();

/* Initialize the hardware */
if (!low_level_init_successful()) {
return false;
Expand Down Expand Up @@ -556,6 +559,7 @@ void STM32_EMAC::set_all_multicast(bool all)
void STM32_EMAC::power_down()
{
/* No-op at this stage */
sleep_manager_unlock_deep_sleep();
}

void STM32_EMAC::set_memory_manager(EMACMemoryManager &mem_mngr)
Expand Down

0 comments on commit 2a91a91

Please sign in to comment.