forked from espressif/esp-idf
twai: define clock source name
twai clock source is target-specific, this commit is to define them in the soc layer
This commit is contained in:
@@ -308,6 +308,21 @@ typedef enum {
|
|||||||
DAC_COSINE_CLK_SRC_DEFAULT = SOC_MOD_CLK_RTC_FAST, /*!< Select RTC FAST as the default source clock */
|
DAC_COSINE_CLK_SRC_DEFAULT = SOC_MOD_CLK_RTC_FAST, /*!< Select RTC FAST as the default source clock */
|
||||||
} soc_periph_dac_cosine_clk_src_t;
|
} soc_periph_dac_cosine_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_APB}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_APB = SOC_MOD_CLK_APB, /*!< Select APB as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -248,6 +248,21 @@ typedef enum {
|
|||||||
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
} soc_periph_sdm_clk_src_t;
|
} soc_periph_sdm_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_APB}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_APB = SOC_MOD_CLK_APB, /*!< Select APB as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -312,6 +312,21 @@ typedef enum {
|
|||||||
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
} soc_periph_sdm_clk_src_t;
|
} soc_periph_sdm_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_XTAL}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_XTAL = SOC_MOD_CLK_XTAL, /*!< Select XTAL as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_XTAL, /*!< Select XTAL as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -253,6 +253,21 @@ typedef enum {
|
|||||||
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
} soc_periph_sdm_clk_src_t;
|
} soc_periph_sdm_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_APB}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_APB = SOC_MOD_CLK_APB, /*!< Select APB as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -296,6 +296,21 @@ typedef enum {
|
|||||||
DAC_COSINE_CLK_SRC_DEFAULT = SOC_MOD_CLK_RTC_FAST, /*!< Select RTC FAST as the default source clock */
|
DAC_COSINE_CLK_SRC_DEFAULT = SOC_MOD_CLK_RTC_FAST, /*!< Select RTC FAST as the default source clock */
|
||||||
} soc_periph_dac_cosine_clk_src_t;
|
} soc_periph_dac_cosine_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_APB}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_APB = SOC_MOD_CLK_APB, /*!< Select APB as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -294,6 +294,21 @@ typedef enum {
|
|||||||
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
} soc_periph_sdm_clk_src_t;
|
} soc_periph_sdm_clk_src_t;
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////TWAI/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Array initializer for all supported clock sources of TWAI
|
||||||
|
*/
|
||||||
|
#define SOC_TWAI_CLKS {SOC_MOD_CLK_APB}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TWAI clock source
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
TWAI_CLK_SRC_APB = SOC_MOD_CLK_APB, /*!< Select APB as the source clock */
|
||||||
|
TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB, /*!< Select APB as the default clock choice */
|
||||||
|
} soc_periph_twai_clk_src_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user