Remove unused suspend_idle (#16063)
This commit is contained in:
		
							parent
							
								
									9e5f8983ec
								
							
						
					
					
						commit
						6a9ec74b32
					
				
					 4 changed files with 0 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -3,13 +3,6 @@
 | 
			
		|||
#include "md_rgb_matrix.h"
 | 
			
		||||
#include "suspend.h"
 | 
			
		||||
 | 
			
		||||
/** \brief Suspend idle
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: needs doc
 | 
			
		||||
 */
 | 
			
		||||
void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** \brief Run user level Power down
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: needs doc
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,19 +16,6 @@
 | 
			
		|||
#    include "vusb.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** \brief Suspend idle
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: needs doc
 | 
			
		||||
 */
 | 
			
		||||
void suspend_idle(uint8_t time) {
 | 
			
		||||
    cli();
 | 
			
		||||
    set_sleep_mode(SLEEP_MODE_IDLE);
 | 
			
		||||
    sleep_enable();
 | 
			
		||||
    sei();
 | 
			
		||||
    sleep_cpu();
 | 
			
		||||
    sleep_disable();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: This needs some cleanup
 | 
			
		||||
 | 
			
		||||
#if !defined(NO_SUSPEND_POWER_DOWN) && defined(WDT_vect)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,15 +13,6 @@
 | 
			
		|||
#include "led.h"
 | 
			
		||||
#include "wait.h"
 | 
			
		||||
 | 
			
		||||
/** \brief suspend idle
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: needs doc
 | 
			
		||||
 */
 | 
			
		||||
void suspend_idle(uint8_t time) {
 | 
			
		||||
    // TODO: this is not used anywhere - what units is 'time' in?
 | 
			
		||||
    wait_ms(time);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** \brief suspend power down
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: needs doc
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,6 @@
 | 
			
		|||
#include <stdint.h>
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
 | 
			
		||||
void suspend_idle(uint8_t timeout);
 | 
			
		||||
void suspend_power_down(void);
 | 
			
		||||
bool suspend_wakeup_condition(void);
 | 
			
		||||
void suspend_wakeup_init(void);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue