[FL-1313] fix resistor heating on F5 target #467
This commit is contained in:
		
							parent
							
								
									3114a2d4b8
								
							
						
					
					
						commit
						4f038e4a41
					
				| @ -53,13 +53,12 @@ void RfidTimerEmulator::start(Type type) { | |||||||
| 
 | 
 | ||||||
| void RfidTimerEmulator::stop() { | void RfidTimerEmulator::stop() { | ||||||
|     api_hal_rfid_tim_emulate_stop(); |     api_hal_rfid_tim_emulate_stop(); | ||||||
|  |     api_hal_rfid_tim_reset(); | ||||||
|  |     api_hal_rfid_pins_reset(); | ||||||
| 
 | 
 | ||||||
|     api_interrupt_remove(timer_update_callback, InterruptTypeTimerUpdate); |     api_interrupt_remove(timer_update_callback, InterruptTypeTimerUpdate); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void RfidTimerEmulator::emulate() { |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void RfidTimerEmulator::timer_update_callback(void* _hw, void* ctx) { | void RfidTimerEmulator::timer_update_callback(void* _hw, void* ctx) { | ||||||
|     RfidTimerEmulator* _this = static_cast<RfidTimerEmulator*>(ctx); |     RfidTimerEmulator* _this = static_cast<RfidTimerEmulator*>(ctx); | ||||||
|     TIM_HandleTypeDef* hw = static_cast<TIM_HandleTypeDef*>(_hw); |     TIM_HandleTypeDef* hw = static_cast<TIM_HandleTypeDef*>(_hw); | ||||||
|  | |||||||
| @ -20,7 +20,6 @@ public: | |||||||
|     ~RfidTimerEmulator(); |     ~RfidTimerEmulator(); | ||||||
|     void start(Type type); |     void start(Type type); | ||||||
|     void stop(); |     void stop(); | ||||||
|     void emulate(); |  | ||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|     EncoderGeneric* current_encoder = nullptr; |     EncoderGeneric* current_encoder = nullptr; | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ void api_hal_rfid_pins_reset() { | |||||||
| 
 | 
 | ||||||
|     // from both sides
 |     // from both sides
 | ||||||
|     hal_gpio_init(&gpio_rfid_pull, GpioModeOutputPushPull, GpioSpeedLow, GpioPullNo); |     hal_gpio_init(&gpio_rfid_pull, GpioModeOutputPushPull, GpioSpeedLow, GpioPullNo); | ||||||
|     hal_gpio_write(&gpio_rfid_pull, true); |     hal_gpio_write(&gpio_rfid_pull, false); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void api_hal_rfid_pins_emulate() { | void api_hal_rfid_pins_emulate() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 SG
						SG