mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			STM32 EMAC : lock deep sleep
							parent
							
								
									ab882c3416
								
							
						
					
					
						commit
						79bef6e2c8
					
				| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
#include "cmsis_os.h"
 | 
			
		||||
 | 
			
		||||
#include "mbed.h"
 | 
			
		||||
#include "mbed_interface.h"
 | 
			
		||||
#include "mbed_assert.h"
 | 
			
		||||
#include "mbed_shared_queues.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue