| 
									
										
										
										
											2020-02-06 14:00:18 +08:00
										 |  |  | idf_build_get_property(target IDF_TARGET)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-14 14:46:13 +08:00
										 |  |  | set(srcs "src/esp_timer.c" | 
					
						
							| 
									
										
										
										
											2021-03-08 23:01:40 +08:00
										 |  |  |          "src/ets_timer_legacy.c"
 | 
					
						
							|  |  |  |          "src/system_time.c")
 | 
					
						
							| 
									
										
										
										
											2020-02-06 14:00:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-14 19:01:19 +08:00
										 |  |  | if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
 | 
					
						
							| 
									
										
										
										
											2020-02-06 14:00:18 +08:00
										 |  |  |     list(APPEND srcs "src/esp_timer_impl_lac.c")
 | 
					
						
							|  |  |  | elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
 | 
					
						
							|  |  |  |     list(APPEND srcs "src/esp_timer_impl_systimer.c")
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | idf_component_register(SRCS "${srcs}" | 
					
						
							|  |  |  |                     INCLUDE_DIRS include
 | 
					
						
							|  |  |  |                     PRIV_INCLUDE_DIRS private_include
 | 
					
						
							|  |  |  |                     REQUIRES esp_common
 | 
					
						
							| 
									
										
										
										
											2022-05-17 16:17:37 +08:00
										 |  |  |                     PRIV_REQUIRES soc driver)
 |