Fix include order for compatibility
including the files in source file instead of header file fixed 'conflicting type' errors in idf macros when using newer version ESP-IDF v4.4.4-148-g4c2afac355
This commit is contained in:
		
							parent
							
								
									3d4f327832
								
							
						
					
					
						commit
						06ebb1fbc6
					
				| @ -1,5 +1,21 @@ | ||||
| extern "C" | ||||
| { | ||||
| #include <stdio.h> | ||||
| #include "freertos/FreeRTOS.h" | ||||
| #include "freertos/task.h" | ||||
| #include "esp_log.h" | ||||
| #include "driver/adc.h" | ||||
| } | ||||
| 
 | ||||
| #include "DendoStepper.h" | ||||
| #include "config.hpp" | ||||
| #include "guide-stepper.hpp" | ||||
| 
 | ||||
| 
 | ||||
| //---------------------
 | ||||
| //--- configuration ---
 | ||||
| //---------------------
 | ||||
| //also see config.hpp
 | ||||
| #define LEN_MOVE 90     //mm
 | ||||
| #define SPEED_MIN 5.0   //mm/s
 | ||||
| #define SPEED_MAX 110.0 //mm/s
 | ||||
|  | ||||
| @ -1,15 +1,4 @@ | ||||
| extern "C" | ||||
| { | ||||
| #include <stdio.h> | ||||
| #include "DendoStepper.h" | ||||
| #include "freertos/FreeRTOS.h" | ||||
| #include "freertos/task.h" | ||||
| #include "esp_log.h" | ||||
| #include "driver/adc.h" | ||||
| } | ||||
| 
 | ||||
| #include "config.hpp" | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| //task that initializes and controls the stepper motor
 | ||||
| //current functionality: 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user