# PhoneRail 的硬件抽象层(ESP-IDF 侧)。宿主机侧编的是 sim/,由 host/CMakeLists.txt 收。 # # ⚠️ 组件名不能叫 `hal` —— ESP-IDF 自己有一个 components/hal(driver 依赖它), # 重名会把 IDF 的那个盖掉。所以目录叫 phonerail_hal。 idf_component_register( SRCS "hal_err.c" "hal_i2c_acct.c" "esp/hal_lock_esp.c" "esp/hal_i2c_esp.c" "esp/hal_gpio_esp.c" "esp/hal_pwm_esp.c" "esp/hal_time_esp.c" "esp/hal_store_esp.c" INCLUDE_DIRS "include" REQUIRES esp_driver_i2c esp_driver_gpio esp_driver_ledc esp_timer esp_partition freertos)