mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'feat/esp32p4_eco5_emac_v6.0' into 'release/v6.0'
Added PTP PPS Feature (v6.0) See merge request espressif/esp-idf!45060
This commit is contained in:
@@ -224,8 +224,8 @@ typedef struct {
|
||||
typedef struct {
|
||||
eth_mac_ptp_update_method_t upd_method;
|
||||
eth_mac_ptp_roll_type_t roll;
|
||||
uint32_t ptp_clk_src_period_ns; /*!< 1/ptp_ref_clk */
|
||||
uint32_t ptp_req_accuracy_ns; /*!< required PTP accuracy in ns, must be greater than clk_src period */
|
||||
float ptp_clk_src_period_ns; /*!< 1/ptp_ref_clk */
|
||||
float ptp_req_accuracy_ns; /*!< required PTP accuracy in ns, must be greater than clk_src period */
|
||||
} emac_hal_ptp_config_t;
|
||||
#endif
|
||||
|
||||
@@ -325,6 +325,8 @@ void emac_hal_set_rx_tx_desc_addr(emac_hal_context_t *hal, eth_dma_rx_descriptor
|
||||
|
||||
#define emac_hal_transmit_poll_demand(hal) emac_ll_transmit_poll_demand((hal)->dma_regs, 0)
|
||||
|
||||
#define emac_hal_get_hw_feat(hal) emac_ll_get_hw_feat((hal)->dma_regs)
|
||||
|
||||
#if SOC_EMAC_IEEE1588V2_SUPPORTED
|
||||
#define emac_hal_get_ts_status(hal) emac_ll_get_ts_status((hal)->ptp_regs);
|
||||
|
||||
@@ -458,6 +460,8 @@ esp_err_t emac_hal_get_rxdesc_timestamp(emac_hal_context_t *hal, eth_dma_rx_desc
|
||||
*/
|
||||
esp_err_t emac_hal_get_txdesc_timestamp(emac_hal_context_t *hal, eth_dma_tx_descriptor_t *txdesc, uint32_t *seconds, uint32_t *nano_seconds);
|
||||
|
||||
esp_err_t emac_hal_set_pps0_out_freq(emac_hal_context_t *hal, uint32_t freq_hz);
|
||||
|
||||
#endif // SOC_EMAC_IEEE1588V2_SUPPORTED
|
||||
#endif // SOC_EMAC_SUPPORTED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user