Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 EMAC : lock deep sleep #8219

Merged
merged 1 commit into from Oct 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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