stub out secure as its own feature
This commit is contained in:
		
							parent
							
								
									2c068d08dd
								
							
						
					
					
						commit
						89fab427c4
					
				
					 14 changed files with 204 additions and 5 deletions
				
			
		
							
								
								
									
										27
									
								
								quantum/secure.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								quantum/secure.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
// Copyright 2022 QMK
 | 
			
		||||
// SPDX-License-Identifier: GPL-2.0-or-later
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
    SECURE_LOCKED,
 | 
			
		||||
    SECURE_PENDING,
 | 
			
		||||
    SECURE_UNLOCKED,
 | 
			
		||||
} secure_status_t;
 | 
			
		||||
 | 
			
		||||
secure_status_t secure_get_status(void);
 | 
			
		||||
 | 
			
		||||
bool secure_is_unlocking(void);
 | 
			
		||||
 | 
			
		||||
void secure_lock(void);
 | 
			
		||||
 | 
			
		||||
void secure_unlock(void);
 | 
			
		||||
 | 
			
		||||
void secure_request_unlock(void);
 | 
			
		||||
 | 
			
		||||
void secure_keypress_event(uint8_t row, uint8_t col);
 | 
			
		||||
 | 
			
		||||
void secure_task(void);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue