refactor(hal): clean up some hal file dependency on sdkconfig.h

This commit is contained in:
morris
2025-07-17 10:33:08 +08:00
parent 0296c30908
commit ccd092d7dc
35 changed files with 108 additions and 149 deletions
@@ -11,8 +11,28 @@
extern "C" {
#endif
/**
* @brief Enable this to reuse ROM APIs for GPIO operations.
* It will save some code size.
*/
#define HAL_CONFIG_GPIO_USE_ROM_API CONFIG_HAL_GPIO_USE_ROM_IMPL
/**
* @brief Enable this to indicate the target is an FPGA.
*/
#define HAL_CONFIG_EFUSE_ENV_FPGA CONFIG_IDF_ENV_FPGA
/**
* @brief When the hardware fails in measuring the XTAL frequency, use this value as a hint.
*/
#define HAL_CONFIG_XTAL_HINT_FREQ_MHZ CONFIG_XTAL_FREQ
/**
* @brief Enable this to use ROM APIs for SPI Flash operations.
* It will save some code size.
*/
#define HAL_CONFIG_SPI_FLASH_USE_ROM_API CONFIG_SPI_FLASH_ROM_IMPL
#ifdef __cplusplus
}
#endif