mirror of
				https://github.com/0xFEEDC0DE64/arduino-esp32.git
				synced 2025-11-04 08:01:38 +01:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
		
			405 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			405 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								/*
							 | 
						||
| 
								 | 
							
								 * FunctionalInterrupt.h
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 *  Created on: 8 jul. 2018
							 | 
						||
| 
								 | 
							
								 *      Author: Herman
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef CORE_CORE_FUNCTIONALINTERRUPT_H_
							 | 
						||
| 
								 | 
							
								#define CORE_CORE_FUNCTIONALINTERRUPT_H_
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <functional>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								struct InterruptArgStructure {
							 | 
						||
| 
								 | 
							
									std::function<void(void)> interruptFunction;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* CORE_CORE_FUNCTIONALINTERRUPT_H_ */
							 |