NFC: add interrupt routine only if APP_NFC is defined
This commit is contained in:
		
							parent
							
								
									785469f598
								
							
						
					
					
						commit
						d27b93c1ca
					
				| @ -3,7 +3,10 @@ | ||||
| #include <stdio.h> | ||||
| #include <flipper.h> | ||||
| 
 | ||||
| #ifdef APP_NFC | ||||
| void st25r3916Isr(void); | ||||
| #endif | ||||
| 
 | ||||
| static volatile bool initialized = false; | ||||
| static SemaphoreHandle_t event; | ||||
| static InputState input_state = { | ||||
| @ -101,10 +104,12 @@ void input_task(void* p) { | ||||
| } | ||||
| 
 | ||||
| void HAL_GPIO_EXTI_Callback(uint16_t pin) { | ||||
| #ifdef APP_NFC | ||||
|     if(pin == RFID_PULL_Pin) { | ||||
|         st25r3916Isr(); | ||||
|         return; | ||||
|     } | ||||
| #endif | ||||
| 
 | ||||
|     if(!initialized) return; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Aleksandr Kutuzov
						Aleksandr Kutuzov